以前搞过只记得String字符串换行要用"+"连接,但现在怎么搞都不成功,都忘记了。代码如下:String ss="<html><head><SCRIPT language='JavaScript'>function
openwindow(){open('menu1.html','窗口标题','toolbars=0,scrollbars=0,location=0,statusbars=0,menubars=0,resizable=0,width=650,height=150');}</SCRIPT></HEAD><body onLoad='openwindow()'><h2>看看和我一起打开的广告窗口</h2></body></html>";
openwindow(){open('menu1.html','窗口标题','toolbars=0,scrollbars=0,location=0,statusbars=0,menubars=0,resizable=0,width=650,height=150');}</SCRIPT></HEAD><body onLoad='openwindow()'><h2>看看和我一起打开的广告窗口</h2></body></html>";
+"openwindow(){open('menu1.html','窗口标题','toolbars=0,scrollbars=0,location=0,statusbars=0,menubars=0,resizable=0,width=650,height=150');} </SCRIPT>"
+"</head><body onLoad='openwindow()'><h2>看看和我一起打开的广告窗口 </h2></body> </html>";
+ "openwindow(){open('menu1.html','窗口标题','toolbars=0,scrollbars=0,location=0,statusbars=0,menubars=0,resizable=0,width=650,height=150');} </SCRIPT>"
+ " </head> <body onLoad='openwindow()'> <h2>看看和我一起打开的广告窗口 </h2> </body> </html>";
var str=‘aaa’
+'sssss';
alert(str);