I am looking for an answer but I am only getting results in relation to Google Maps API. I am trying to use a map in JavaScript to map an integer to a string. Everything in Firefox is working fine but in Chrome I receive an error message in the console:
Unwanted reference: map is not defined
down One piece is the reference code:
var named; Var distance मापक; Function filmop () {NameMap = new map (); Distance map = new map (); Nammap.Set (01, "Arab / Ã? Lava"); } Function CzechName (_field) {var value = document.getElementsByName (_field.name) .item (0) .value; Var location = value. Chart (0) + value.charAt (1); Var result = NameMap.get (parseInt (location)); If (result == undefined) {result = "unknown"; } Document.getElementById ('loc'). InnerHTML = Results;
Some ES portability features, including
map () , 2011 At the end of it was already present in chrome. It's currently disabled by default.
To enable the feature, go to
chrome: // flags / , and enable "Enable experimental JavaScript". Then restart the browser and enjoy new features.
An alternate way is
- js-flags = - Harmony on the command line Flag for example:
chromium - js-flags = - good faith chrome.exe --jsflags = - good faith
No comments:
Post a Comment