VUE 打包正则报错:Error parsing regular expression: Invalid regular expression:

需要用new RegExp代替//
如: 
 num = num.replace(/(?<=\d\.\d{2})./, '');
换成   let reg
= new RegExp("(?<=\\d\\.\\d{2}).","g");   num = num.replace(reg, '');

 


posted @ 2020-08-05 14:49  honely1314  阅读(2813)  评论(0编辑  收藏  举报