将其放在您的代码中(最好放在通用的js函数库中):String.prototype.nl2br = function(){ return this.replace(/\n/g, "<br />");}用法:var myString ...
確定! 回上一頁