1. on the server side using VBScript:
str = replace (str, chr(13) & chr(10),"<br>")2. on the client side using Javascript:
str = str.replace("\n","<br>");
str = replace (str, chr(13) & chr(10),"<br>")2. on the client side using Javascript:
str = str.replace("\n","<br>");
谢谢各位了嘻嘻应该是 string=string.replace(/\r/g,'<br>')
有点象