摘要:
文件 util.js /** * 实现字符串按照长度截取 * @param str [string] * @returns len [number] * get string length ,include letter、number、symbol and Chinese Word. a Chine 阅读全文
摘要:
var f = /@/g; var src="2876110865@qq.com" console.log(src.match(f)); new RegExp(pattern/attributes); attribute:g(执行全局搜索,直到搜索完毕才结束) m(多行匹配) i(大小写不敏感) 匹 阅读全文