问答详情
源自:2-4 多样化的我(变量赋值)

javascript中如何换行?

javascript中如何换行?

提问者:StevenPenn 2015-06-06 10:52

个回答

  • jikaiyang
    2015-12-17 18:55:53

    感觉换行<br><br/></br>这3个貌似都行啊

  • wxs丿灬
    2015-10-09 13:10:19

     document.write("num1的值是:"+num1+"</br>") ;

    document.write("num2的值是:"+num2);


  • 慕工程4735036
    2015-07-30 17:31:54

    document.write("</br>")

  • 别做白日梦
    2015-06-06 11:05:29

    var c="asdf\nasdnasd\n";
    var c1=c.replace("\n","@").replace("\n","@");
    alert(c1);

    replace一次只能替换一个,