// 将字符串中的回车换行符替换为traget内容transferStr = (content,traget) => {let newContent = '';newContent = content.replace(/\r\n/g,traget);newContent = newContent.replace(/\n/g,traget)return newContent;}
1200字范文,内容丰富有趣,写作的好帮手!
时间:2019-09-14 13:51:30
// 将字符串中的回车换行符替换为traget内容transferStr = (content,traget) => {let newContent = '';newContent = content.replace(/\r\n/g,traget);newContent = newContent.replace(/\n/g,traget)return newContent;}