请用"
\n"
如果这个不可以的话就是"
\\n"
比如:
<
script type
=
"
text/javascript
"
>
alert( " hello \n world! " );
< / script>
alert( " hello \n world! " );
< / script>
转载于:https://www.cnblogs.com/neve/archive/2010/09/26/1836108.html