JS提交数据特殊字符转义

//特殊字符转义
noteVal = noteVal.replace(/%/g, "%25");
noteVal = noteVal.replace(/\&/g, "%26");
noteVal = noteVal.replace(/\+/g, "%2B");
noteVal = noteVal.replace(/\?/g, "%3f");

 

posted @ 2021-02-08 16:05  InkYi  阅读(578)  评论(0编辑  收藏  举报