在线文档教程

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]"

规范

SpecificationStatusComment
ECMAScript 2015 (6th Edition, ECMA-262)The definition of 'Map.prototype@@toStringTag' in that specification.StandardInitial definition.
ECMAScript 2017 Draft (ECMA-262)The definition of 'Map.prototype@@toStringTag' in that specification.Draft

浏览器兼容性

FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support44.0No supportNo supportNo supportNo support

FeatureAndroidAndroid WebviewFirefox Mobile (Gecko)IE MobileOpera MobileSafari MobileChrome for Android
Basic supportNo support44.0No supportNo supportNo supportNo support44.0