mymsg=mymsg.replace(/<\/?.+?>/g,"");//html2txt 去掉html标记
mymsg=mymsg.replace(/\n|\r/g,""); //去掉换行
js 去掉html标记 去掉换行
最新推荐文章于 2024-10-11 13:36:08 发布
mymsg=mymsg.replace(/<\/?.+?>/g,"");//html2txt 去掉html标记
mymsg=mymsg.replace(/\n|\r/g,""); //去掉换行