如果直接像在js中写的话会报错 方法:将转译符号写两次,如下图所示 参考文档:https://stackoverflow.com/questions/25426464/regex-pattern-in-json