09 2020 档案

 
正则表达式转义特殊字符
摘要:js代码:比如 . 转义位\.function escapeRegExp(text) { text = text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&'); return text;} 阅读全文
posted @ 2020-09-28 18:31 老痰涮菜 阅读(1217) 评论(0) 推荐(0) 编辑

 

点击右上角即可分享
微信分享提示