Symbol.replace
该Symbol.replace公知的符号指定替换字符串的子串匹配方法。该功能由该String.prototype.replace()方法调用。
有关更多信息,请参阅RegExp.prototype[@@replace]()和String.prototype.replace()。
| Symbol.replace 属性的属性特性: |
|:----|
| Writable | no |
| Enumerable | no |
| Configurable | no |
规范
Specification | Status | Comment |
|---|---|---|
ECMAScript 2015 (6th Edition, ECMA-262)The definition of 'Symbol.replace' in that specification. | Standard | Initial definition. |
ECMAScript Latest Draft (ECMA-262)The definition of 'Symbol.replace' in that specification. | Living Standard | |
浏览器兼容性
Feature | Chrome | Edge | Firefox (Gecko) | Internet Explorer | Opera | Safari |
|---|---|---|---|---|---|---|
Basic support | 50 | (Yes) | 49 (49) | No support | No support | No support |
Feature | Android | Chrome for Android | Edge | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
|---|---|---|---|---|---|---|---|
Basic support | No support | No support | (Yes) | 49.0 (49) | No support | No support | No support |
本文档系腾讯云开发者社区成员共同维护,如有问题请联系 cloudcommunity@tencent.com

