问题的出现 找到问题 出现这个问题还是浏览器过旧的问题 真正的解决办法 通过console替换replace函数 //来自 https://stackoverflow.com/a/67750739 if(typeof String.prototype.replaceAll === "undefined") { String.prototype.replaceAll = function(match, replace) { return this.replace(new RegExp(match, 'g'), () => replace); } }