把 换行 替换为指定字符

replace(/[\r\n]/g,"|")    //.replace(/\n/g, "").replace(/\r/g, "")


将 换行换成 ||
相关文章
相关标签/搜索