javascript中如何换行?
感觉换行<br><br/></br>这3个貌似都行啊
document.write("num1的值是:"+num1+"</br>") ;
document.write("num2的值是:"+num2);
document.write("</br>")
var c="asdf\nasdnasd\n";var c1=c.replace("\n","@").replace("\n","@"); alert(c1);replace一次只能替换一个,