IE8以下だとJSONの中のオブジェクトキーにnewがあってそれを読み込もうとするとエラーになってしまう。new演算子と混同してしまうようだ。
$.getJSON("test.js", function(json){ $("body").append(json.new); });
{"new": 1}
IE8以下だとJSONの中のオブジェクトキーがnewだとエラーになるサンプル
https://iwb.jp/s/ie8-json-new-error/
Webサイト制作情報ブログ
IE8以下だとJSONの中のオブジェクトキーにnewがあってそれを読み込もうとするとエラーになってしまう。new演算子と混同してしまうようだ。
$.getJSON("test.js", function(json){ $("body").append(json.new); });
{"new": 1}
IE8以下だとJSONの中のオブジェクトキーがnewだとエラーになるサンプル
https://iwb.jp/s/ie8-json-new-error/
閲覧するにはiwb.jpの広告の非表示設定の解除をお願いします。
We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.