map.@@toStringTag
map.@@toStringTag
Map[@@toStringTag]
的初始值是"Map".
| Map.prototype[@@toStringTag]
属性的属性特性 |
|:----|
| Writable | no |
| Enumerable | no |
| Configurable | yes |
语法
Map[Symbol.toStringTag]
示例
Object.prototype.toString.call(new Map()) // "[object Map]"
规范
Specification | Status | Comment |
---|---|---|
ECMAScript 2015 (6th Edition, ECMA-262)The definition of 'Map.prototype@@toStringTag' in that specification. | Standard | Initial definition. |
ECMAScript 2017 Draft (ECMA-262)The definition of 'Map.prototype@@toStringTag' in that specification. | Draft | |
浏览器兼容性
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Basic support | 44.0 | No support | No support | No support | No support |
Feature | Android | Android Webview | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile | Chrome for Android |
---|---|---|---|---|---|---|---|
Basic support | No support | 44.0 | No support | No support | No support | No support | 44.0 |