关于超长字符串的处理问题?
在js 中:
var str = "xxxx
xxx";
是不行的,但是现在需要操作一大段文本,如
var str = "<FONT color=green size=4>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: center" align=center><FONT color=#000000><B style="mso-bidi-font-weight: normal"><SPAN style="FONT-SIZE: 18pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">新闻管理模块设计</SPAN></B><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="FONT-SIZE: 18pt"><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></B></FONT></P>";
这样赋值有错,不知道各位有什么办法??
另外,操作文本长度未知。