PHP保存$data = preg_replace("/[\r\n]+/", '##', $a); //将回车键替换##保存JS 读取
var str1 = ldata.data.replace(/##/g,"\n"); //将数据##替换成回车显示