摘要: js代码:比如 . 转义位\.function escapeRegExp(text) { text = text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&'); return text;} 阅读全文