You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** * String.prototype.replaceAll() polyfill * https://gomakethings.com/how-to-replace-a-section-of-a-string-with-another-one-with-vanilla-js/ * @author Chris Ferdinandi * @license MIT */if(!String.prototype.replaceAll){String.prototype.replaceAll=function(str,newStr){// If a regex patternif(Object.prototype.toString.call(str).toLowerCase()==='[object regexp]'){returnthis.replace(str,newStr);}// If a stringreturnthis.replace(newRegExp(str,'g'),newStr);};}
The text was updated successfully, but these errors were encountered:
使用 uni-app 开发小程序的时候,发现的此问题。支付宝小程序的时候会报错,uc webview 不支持此方法。需要使用 polyfill(垫片)解决。
The text was updated successfully, but these errors were encountered: