Map() is not defined in Google Chrome

前端 未结 4 510
暗喜
暗喜 2021-01-13 03:18

I\'ve been searching for an answer but I\'m only getting results regarding the Google maps API. I\'m trying to use a map in JavaScript to map an integer to a string. Everyth

4条回答
  •  逝去的感伤
    2021-01-13 04:00

    "Danger! Experimental technology!"

    https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map

    Its possible the code here can implement Map for Chrome, but I've not tried:

    http://wiki.ecmascript.org/doku.php?id=harmony:simple_maps_and_sets

提交回复
热议问题