#12002/7/27 0:16:27
这样做的
1 在需要控制的表格前添了这段
<%
var str1 = string(Server.HTMLEncode((Rec.Fields.Item("content").value)));
var str2 = str1.replace(/\n/g, "
");
var myshowmessage=str2.replace(/\s/g, "&NBSP;"); //NBSP我机器是用的小写 但是这里不能显示就换大写了
%>
2 再把原来记录字段替换
<%=Server.HTMLEncode((Rec.Fields.Item("content").value))%>
替换为新的<%=myshowmessage%>
可是老显示错误
错误类型:
Microsoft VBScript 编译器错误 (0x800A0401)
语句未结束
/office/institute/regulate/TMP7u88gzv33d.asp, line 505, column 72
var str1 = string(Server.HTMLEncode((Rec.Fields.Item("content").value)));
-----------------------------------------------------------------------^
各位怎么解决 听说有插件 在哪下载和用法 谢谢