摘要: 解决办法: new RegExp(reg); //将字符串格式转化为正则表达式 阅读全文