美文网首页
uniapp SyntaxError 2021-05-26

uniapp SyntaxError 2021-05-26

作者: 追逐繁星的阿忠 | 来源:发表于2021-05-26 22:29 被阅读0次

IOS报错截图

image.png

解决方案:IOS 正则表达式不支持前瞻后顾,快去检查哪里用到了正则 ,正则中包含?< 及?!<等之类的代码,需要去掉这个代码

我的错误代码: this.name = user.identity_authentication.name.replace(/(?<=[\u4e00-\u9fa5]).(?=[\u4e00-\u9fa5])/, "")

正则表达式不支持前瞻后顾,快去检查哪里用到了正则 ,正则中包含?< 及?!<等之类的代码

SyntaxError
line:25277,column:140813,SyntaxError: Invalid regular expression: invalid group specifier name Stack:[native code]
value@https://lib/WAServiceMainContext.js:2:140813
https://lib/WAServiceMainContext.js:2:143817
https://lib/WAServiceMainContext.js:2:143783
h@https://lib/WAServiceMainContext.js:2:67651
g@https://lib/WAServiceMainContext.js:2:67930
p@https://lib/WAServiceMainContext.js:2:142715
https://lib/WAServiceMainContext.js:2:144235
https://lib/WAServiceMainContext.js:2:133293
https://lib/WAServiceMainContext.js:2:247949
https://lib/WAServiceMainContext.js:2:246889
https://lib/WAServiceMainContext.js:2:246852
https://lib/WAServiceMainContext.js:2:247949
x@https://lib/WAServiceMainContext.js:2:63950

相关文章

网友评论

      本文标题:uniapp SyntaxError 2021-05-26

      本文链接:https://www.haomeiwen.com/subject/somlsltx.html