请斑竹不吝赐教
谢谢斑竹和小伦,我解决了在页面中放Text类型数据的问题。本人最终的代码为:
<%
var text=rsDetail.Fields.Item("content").Value;
text=text.replace(/\n/g,"<br>");
%>
<td valign="top" align="left" width="100%">
<%=text%>
不知斑竹和小伦有更精炼的代码否?
还有一个问题:
为什么我用 text=text.replace(0x0a,"<br>") 不行? 我想处理文档中的 \t 空格,使用如下代码:
text=text.replace(/\t/g," ");
text=text.replace(\" "/g," ");
为什么不行?请指教,谢谢!!!