{"id":1273,"date":"2018-09-24T02:01:52","date_gmt":"2018-09-23T17:01:52","guid":{"rendered":"https:\/\/blog.capilano-fw.com\/?p=1273"},"modified":"2021-03-04T02:44:28","modified_gmt":"2021-03-03T17:44:28","slug":"%e6%b3%a8%e6%84%8f%ef%bc%81ie11%e3%81%a7%e4%bd%bf%e3%81%88%e3%81%aa%e3%81%84%e6%9c%80%e6%96%b0javascrit%e3%82%b3%e3%83%bc%e3%83%89%ef%bc%88es6%ef%bc%89","status":"publish","type":"post","link":"https:\/\/blog.capilano-fw.com\/?p=1273","title":{"rendered":"\u6ce8\u610f\uff01IE11\u3067\u4f7f\u3048\u306a\u3044\u6700\u65b0JavaScrit\u30b3\u30fc\u30c9\uff08ES6\uff09"},"content":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u524d\u56de\u306e\u8a18\u4e8b\u3001<a href=\"https:\/\/blog.capilano-fw.com\/?p=1259\">\u5b8c\u5168\u306a\u624b\u9806\uff01VueJS\u3067\u81ea\u52d5\u30da\u30fc\u30b8\u9001\u308a\u3059\u308b\u65b9\u6cd5<\/a>\u3067\u306f\u3001ES6\u3092\u4f7f\u3063\u3066\u30da\u30fc\u30b8\u9001\u308a\u6a5f\u80fd\u3092\u5b9f\u88c5\u3057\u3066\u307f\u307e\u3057\u305f\u304c\u3001\u305d\u306e\u969b\u3075\u3068\u7591\u554f\u306b\u601d\u3063\u305f\u3053\u3068\u304c\u3042\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u308c\u306f\u3001<\/p>\n<p><strong style=\"font-size: 35px;\">\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u30fc11\uff08IE 11\uff09\u3060\u3068\u3001\u3069\u3093\u306aES\uff16\u306e\u8a18\u8ff0\u304c\u3067\u304d\u308b\u3093\u3060\u308d\u3046\uff1f\uff1f<\/strong><\/p>\n<p>\u3068\u3044\u3046\u3082\u306e\u3067\u3059\u3002<\/p>\n<p><code>IE<\/code>\u3068\u3044\u3048\u3070\u3001\u5f53\u306e\u30de\u30a4\u30af\u30ed\u30bd\u30d5\u30c8\u3067\u3055\u3048<code>edge<\/code>\u3078\u306e\u79fb\u884c\u3092\u3059\u3059\u3081\u3066\u3044\u308b\u3001\u3082\u306f\u3084\u30ec\u30ac\u30b7\u30fc\u306a\u30d6\u30e9\u30a6\u30b6\u3067\u3059\u304c\u3001\u672a\u3060\u306b\u4e00\u5b9a\u6570\u4ee5\u4e0a\u306e\u30b7\u30a7\u30a2\u3092\u6301\u3063\u3066\u3044\u308b\u3053\u3068\u304b\u3089\u3001\u3069\u3046\u3057\u3066\u3082\u53e4\u3044JavaScript\u306e\u66f8\u304d\u65b9\u3092\u305b\u3056\u308b\u3092\u5f97\u306a\u3044\u306e\u304c\u73fe\u72b6\u3067\u3059\u3002\uff08Bable\u3068\u304b\u306fIE\u3078\u306e\u5bfe\u5fdc\u3068\u3044\u3046\u610f\u5473\u5408\u3044\u304c\u5927\u304d\u3044\u3067\u3059\u306d\uff09<\/p>\n<p>\u305d\u3053\u3067\uff01\u4eca\u56de\u306f\u3001\u5b9f\u969b\u306b<code>IE11<\/code>\u3067<code>ES6<\/code>\u306e\u4e3b\u8981\u306a\u66f8\u304d\u65b9\u3092\u5b9f\u884c\u3057\u3001\u3046\u307e\u304f\u3044\u304f\u304b\u3069\u3046\u304b\u3092\u3072\u3068\u3064\u305a\u3064\u691c\u8a3c\u3057\u3066\u307f\u307e\u3059\u3002\uff08\u305d\u3057\u3066\u3001\u305b\u3063\u304b\u304f\u306a\u306e\u3067<code>edge<\/code>\u3067\u3082\u691c\u8a3c\u3057\u3066\u307f\u307e\u3057\u305f\u3002\uff09<\/p>\n<p>\u305c\u3072\u958b\u767a\u306e\u53c2\u8003\u306b\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-427 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/04\/24.png\" alt=\"\" width=\"182\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/04\/24.png 182w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/04\/24-171x300.png 171w\" sizes=\"auto, (max-width: 182px) 100vw, 182px\" \/>\u300c\u3072\u3055\u3073\u3055\u306bVirtualBox\u3092\u8d77\u52d5\u3059\u308b\u305e\u266a\u300d<\/p>\n<p>\u203b\u5b9f\u884c\u74b0\u5883\u306fIE\u304c<code>11.15.16299.0<\/code>\u3001edge\u304c<code>41.16299.15.0<\/code>\u3067\u3059\u3002<\/p>\n<h1>let \u3067\u5909\u6570\u3092\u6307\u5b9a\u3057\u3066\u307f\u308b<\/h1>\n<pre><strong>let <\/strong>letArg = '\u300clet\u300d\u304c\u4f7f\u3048\u307e\u3059\uff01';\r\ndocument.write(letArg);<\/pre>\n<p>IE\uff1a\u00a0 <strong>\u6210\u529f\uff01<br \/>\n<\/strong>edge\uff1a<strong> \u6210\u529f\uff01<\/strong><\/p>\n<p>\u3068\u3082\u306b\u6210\u529f\u3057\u307e\u3057\u305f\u3002<\/p>\n<h1>const \u3067\u5909\u6570\u3092\u6307\u5b9a\u3057\u3066\u307f\u308b<\/h1>\n<pre><strong>const <\/strong>constArg = '\u300cconst\u300d\u304c\u4f7f\u3048\u307e\u3059\uff01';\r\ndocument.write(constArg);<\/pre>\n<p>IE\uff1a\u00a0 <strong>\u6210\u529f\uff01<br \/>\n<\/strong>edge\uff1a <strong>\u6210\u529f\uff01<br \/>\n<\/strong><\/p>\n<p><code>let<\/code>\u3068\u540c\u3058\u304f\u3069\u3061\u3089\u3082\u6210\u529f\u3067\u3059\u3002<\/p>\n<p><strong>\u3010\u8ffd\u8a18\uff1a2021.03.04\u3011<\/strong><br \/>\n\u8a2a\u554f\u30e6\u30fc\u30b6\u30fc\u3055\u3093\u304b\u3089\u3054\u6307\u6458\u3092\u3044\u305f\u3060\u304d\u307e\u3057\u3066\u3001<code>IE 11<\/code>\u3067\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b<code>for()<\/code>\u306e\u4e2d\u3067\u306f\u4f7f\u3048\u306a\u3044\u3088\u3046\u3067\u3059\u306e\u3067\u8ffd\u8a18\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3059\u3002<\/p>\n<p>\u7686\u3055\u3093\u3001\u8cb4\u91cd\u306a\u60c5\u5831\u3044\u3064\u3082\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002\ud83d\ude0a\u2728<\/p>\n<pre>const items =  { a: 1, b: 2, c: 3 };\r\n\r\nfor(<strong>const<\/strong> key in items) { \/\/ <strong>\u26a0\u3053\u3053\u306e const \u306f IE 11 \u3067\u306f\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u305b\u3093\u3002<\/strong>\r\n\r\n    console.log(key);\r\n\r\n}\r\n<\/pre>\n<p>\u203b \u306a\u304a\u3001<code>Can I use<\/code>\u306b\u3088\u308b\u3068<code>for \u301c in<\/code>\u3060\u3051\u3067\u306a\u304f\u3001<code>for \u301c of<\/code>\u3082<code>IE 11<\/code>\u3067\u306f\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u306a\u3044\u3088\u3046\u3067\u3059\u3002<\/p>\n<p><strong>\ud83d\udcdd\u53c2\u8003URL:<\/strong> <a href=\"https:\/\/caniuse.com\/?search=const\" target=\"_blank\" rel=\"noopener\">https:\/\/caniuse.com\/?search=const<\/a><\/p>\n<h1>\u95a2\u6570\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u3092\u3064\u3051\u3066\u307f\u308b<\/h1>\n<pre>function test(x, <strong>y = 5<\/strong>) {\r\n\r\n    return x + y;\r\n\r\n}\r\ndocument.write(test(3));<\/pre>\n<p>IE\uff1a <strong>\u5931\u6557&#8230;<\/strong><\/p>\n<p>\u4e0a\u306e\u30b3\u30fc\u30c9\u306f\u52d5\u3051\u3070\u300c8\u300d\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u304c\u3001IE11\u3067\u306f\u4ee5\u4e0b\u306e\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1274\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/09\/Screenshot-from-2018-09-24-00-11-13.png\" alt=\"\" width=\"214\" height=\"38\" \/><\/p>\n<p>edge\u306e\u5b9f\u884c\u7d50\u679c\uff1a <strong>\u6210\u529f\uff01<\/strong><\/p>\n<h1>\u30a2\u30ed\u30fc\u95a2\u6570\u3092\u5b9f\u884c\u3057\u3066\u307f\u308b<\/h1>\n<pre>var arrow = <strong>() =&gt; {\r\n\r\n    return '\u30a2\u30ed\u30fc\u95a2\u6570\u304c\u4f7f\u3048\u307e\u3059\uff01';\r\n\r\n};<\/strong>\r\ndocument.write(arrow());<\/pre>\n<p>IE\uff1a <strong>\u5931\u6557&#8230;<\/strong><\/p>\n<p><code>ES6<\/code>\u306e\u4ee3\u8868\u7684\u306a\u65b0\u6a5f\u80fd\u3068\u3044\u3063\u3066\u3082\u3044\u3044\u30a2\u30ed\u30fc\u95a2\u6570\u3067\u3059\u304c\u3001\u3053\u308c\u3082<code>IE11<\/code>\u3067\u306f\u30a8\u30e9\u30fc\u304c\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1275\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/09\/Screenshot-from-2018-09-24-00-13-15.png\" alt=\"\" width=\"209\" height=\"40\" \/><\/p>\n<p>edge\uff1a <strong>\u6210\u529f\uff01<\/strong><\/p>\n<h1>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u7701\u7565\u3057\u3066\u66f8\u3044\u3066\u307f\u308b<\/h1>\n<pre>var obj = {\r\n    <strong>shortFunction()<\/strong>{\r\n\r\n        return '\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u5185\u306e\u95a2\u6570\u304c\u7701\u7565\u304c\u3067\u304d\u307e\u3059\uff01';\r\n\r\n    }\r\n};\r\ndocument.write(obj.shortFunction());<\/pre>\n<p>IE\uff1a <strong>\u5931\u6557&#8230;<\/strong><\/p>\n<p>\u3053\u306e\u8a18\u8ff0\u6cd5\u304c\u3042\u308b\u3060\u3051\u3067\u3001<code>function<\/code>\u3092\u7701\u7565\u3067\u304d\u3066\u4e00\u6c17\u306b\u30b3\u30fc\u30c9\u3092\u6e1b\u3089\u3059\u3053\u3068\u304c\u3067\u304d\u308b\u306e\u3067\u3059\u304c\u3001\u3084\u306f\u308aIE11\u3067\u306f\u3046\u307e\u304f\u52d5\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u300c<span style=\"text-decoration: underline;\">SCRIPT1003: &#8216;:&#8217; \u304c\u3042\u308a\u307e\u305b\u3093<\/span>\u300d\u3068\u8a00\u308f\u308c\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1277\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/09\/Screenshot-from-2018-09-24-00-15-24.png\" alt=\"\" width=\"268\" height=\"38\" \/><\/p>\n<p>edge\uff1a <strong>\u6210\u529f\uff01<\/strong><\/p>\n<h1>\u5f15\u6570\u3092\u4e00\u6c17\u306b\u6307\u5b9a\u3057\u3066\u307f\u308b<\/h1>\n<pre>var setScores = function(first, second, <strong>...rest<\/strong>) {\r\n\r\n    document.write(rest.join(',')); \/\/ 92,32,89,95,40\r\n\r\n};\r\nsetScores(80, 57, 92, 32, 89, 95, 40);<\/pre>\n<p>IE\uff1a <strong>\u5931\u6557&#8230;<br \/>\n<\/strong><\/p>\n<p>\u53ef\u5909\u7684\u306b\u5909\u6570\u306e\u6307\u5b9a\u304c\u3067\u304d\u308b\u306e\u3067\u3001\u591a\u304f\u306e\u72b6\u6cc1\u306b\u5bfe\u5fdc\u3057\u3084\u3059\u3044\u306e\u3067\u3059\u304c\u3001<code>IE11<\/code>\u3067\u306f\u5f15\u6570\u3092\u5168\u3066\u66f8\u304d\u8fbc\u3093\u3067<code>undefined<\/code>\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3057\u304b\u306a\u3044\u3088\u3046\u3067\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1278\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/09\/Screenshot-from-2018-09-24-00-16-22.png\" alt=\"\" width=\"236\" height=\"39\" \/><\/p>\n<p>edge\uff1a <strong>\u6210\u529f\uff01<\/strong><\/p>\n<h1>for\u301cof \u3067\u30eb\u30fc\u30d7\u3057\u3066\u307f\u308b<\/h1>\n<pre><strong>for(var os of ['Windows', 'Mac', 'Linux']) {\r\n\r\n    <\/strong>document.write(os);<strong>\r\n\r\n}<\/strong><\/pre>\n<p>IE\uff1a <strong>\u5931\u6557&#8230;<\/strong><\/p>\n<p>\u30eb\u30fc\u30d7\u3067\u4e2d\u8eab\u3060\u3051\u3092\u53d6\u5f97\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b<code>for\u301cof<\/code>\u3082\u3068\u3066\u3082\u4fbf\u5229\u306a\u6a5f\u80fd\u3067\u3059\u304c\u3001IE\u3067\u306f\u300c<span style=\"text-decoration: underline;\">SCRIPT1004: &#8216;:&#8217; \u304c\u3042\u308a\u307e\u305b\u3093\u3002<\/span>\u300d\u3068\u3044\u3046\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u3066\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1279\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/09\/Screenshot-from-2018-09-24-00-18-01.png\" alt=\"\" width=\"220\" height=\"37\" \/><\/p>\n<p>edge\uff1a<strong> \u6210\u529f\uff01<\/strong><\/p>\n<h1>\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u8a18\u6cd5\u3067\u6587\u5b57\u5217\u3092\u3064\u304f\u3063\u3066\u307f\u308b<\/h1>\n<pre>var name = '\u5c71\u7530\u592a\u90ce';\r\nvar age = '20\u6b73';\r\nvar template = <strong>`\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u304c\u6709\u52b9\u3067\u3059\u3002${name}\u3055\u3093\u306f\u3001${age}\u3067\u3059\u3002`;<\/strong>\r\ndocument.write(template);<\/pre>\n<p>IE\uff1a <strong>\u5931\u6557&#8230;<br \/>\n<\/strong><\/p>\n<p>\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u8a18\u6cd5\u306f\u3001Vue\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u5185\u3067\u3082\u4f7f\u3048\u308b\u3068\u3068\u3066\u3082\u4fbf\u5229\u306a\u306e\u3067\u3059\u304c\u3001IE\u3067\u306f\u300c<span style=\"text-decoration: underline;\">SCRIPT1014: \u6587\u5b57\u304c\u6b63\u3057\u304f\u3042\u308a\u307e\u305b\u3093\u3002<\/span>\u300d\u3068\u3044\u3046\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1280\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/09\/Screenshot-from-2018-09-24-00-18-56.png\" alt=\"\" width=\"255\" height=\"36\" \/><\/p>\n<p>edge\uff1a <strong>\u6210\u529f\uff01<\/strong><\/p>\n<h1>\u8907\u6570\u306e\u5909\u6570\u3092\u4e00\u6c17\u306b\u4ee3\u5165\u3057\u3066\u307f\u308b<\/h1>\n<pre><strong>var [firstName, lastName] = ['\u5c71\u7530', '\u592a\u90ce'];<\/strong>\r\ndocument.write(firstName + lastName);<\/pre>\n<p>IE\uff1a <strong>\u5931\u6557&#8230;<\/strong><\/p>\n<p>Python\u306e\u3088\u3046\u306a\u5909\u6570\u306e\u6307\u5b9a\u65b9\u6cd5\u3067\u3059\u3002<br \/>\n\u5b9f\u884c\u3067\u304d\u308c\u3070\u3088\u308a\u3059\u3063\u304d\u308a\u3057\u305f\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u304c\u3001IE\u3067\u306f\u300c<span style=\"text-decoration: underline;\">SCRIPT1010: \u8b58\u5225\u5b50\u304c\u3042\u308a\u307e\u305b\u3093\u3002<\/span>\u300d\u3068\u3044\u3046\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1281\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/09\/Screenshot-from-2018-09-24-00-19-52.png\" alt=\"\" width=\"228\" height=\"38\" \/><\/p>\n<p>edge\uff1a <strong>\u6210\u529f\uff01<\/strong><\/p>\n<h1>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304b\u3089\u5909\u6570\u306b\u4e00\u6c17\u306b\u4ee3\u5165\u3057\u3066\u307f\u308b<\/h1>\n<pre><strong>var {rock, pop, jazz} = {<\/strong>\r\n<strong>    rock: '\u30ed\u30c3\u30af',<\/strong>\r\n<strong>    pop: '\u30dd\u30c3\u30d7',<\/strong>\r\n<strong>    jazz: '\u30b8\u30e3\u30ba'<\/strong>\r\n<strong>};<\/strong><\/pre>\n<p>IE\uff1a <strong>\u5931\u6557&#8230;<\/strong><\/p>\n<p>\u3053\u308c\u3082\u524d\u9805\u76ee\u3068\u540c\u3058\u304f\u5b9f\u884c\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1282\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/09\/Screenshot-from-2018-09-24-00-21-38.png\" alt=\"\" width=\"232\" height=\"37\" \/><\/p>\n<p>edge\uff1a <strong>\u6210\u529f\uff01<\/strong><\/p>\n<p><strong>\u3010\u8ffd\u8a18\uff1a2020.5.11\u3011<\/strong><a href=\"https:\/\/github.com\/juner\" target=\"_blank\" rel=\"noopener noreferrer\">juner<\/a>\u3055\u3093\u304b\u3089\u3054\u6307\u6458\u304c\u3042\u308a\u3001\u30b3\u30fc\u30c9\u3092\u5909\u66f4\u3057\u307e\u3057\u305f\u3002\u3054\u6307\u6458\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\ud83d\ude0a\u2728<\/p>\n<h1>\u30af\u30e9\u30b9\u5b9a\u7fa9\uff08Constructor, Setter, Getter\uff09<\/h1>\n<pre><strong>class TestClass {<\/strong>\r\n\r\n    constructor(name) {\r\n\r\n        this.name = name;\r\n\r\n    }\r\n\r\n    get Name() {\r\n\r\n        return this.name;\r\n\r\n    }\r\n\r\n    set Name(name) {\r\n\r\n        this.name = name;\r\n\r\n    }\r\n\r\n<strong>}<\/strong>\r\n\r\nlet testClass = new TestClass('\u9234\u6728');\r\ntestClass.Name = '\u4f50\u85e4';\r\ndocument.write(testClass.name); \/\/ \u4f50\u85e4<\/pre>\n<p>IE\uff1a <strong>\u5931\u6557&#8230;<\/strong><\/p>\n<p>\u30af\u30e9\u30b9\u69cb\u6587\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u3042\u308b\u3068\u3001\u4f55\u304b\u3072\u3068\u3064\u306e\u6a5f\u80fd\u3092\u30ab\u30d7\u30bb\u30eb\u5316\u3057\u3084\u3059\u304f\u306a\u308b\u306e\u3067\u3001\u30b3\u30fc\u30c9\u306e\u4f7f\u3044\u56de\u3057\u304c\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u304c\u3001IE\u3067\u306f\u300c<span style=\"text-decoration: underline;\">SCRIPT1002: \u69cb\u6587\u30a8\u30e9\u30fc\u3067\u3059\u3002<\/span>\u300d\u3068\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1283\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/09\/Screenshot-from-2018-09-24-00-22-31.png\" alt=\"\" width=\"208\" height=\"39\" \/><\/p>\n<p>edge\uff1a <strong>\u6210\u529f\uff01<\/strong><\/p>\n<h1>Promise<\/h1>\n<pre>var promise = <strong>new Promise((resolve, reject)<\/strong> =&gt; {\r\n\r\n    \/\/ \u975e\u540c\u671f\u51e6\u7406\r\n\r\n    \/\/ \u6210\u529f\u3057\u305f\u6642\u5b9f\u884c\u3059\u308b\r\n    resolve('\u975e\u540c\u671f\u51e6\u7406\u3001\u6210\u529f\u3067\u3059\uff01');\r\n\r\n    \/\/ \u5931\u6557\u3057\u305f\u6642\u5b9f\u884c\u3059\u308b\r\n    reject('\u6b8b\u5ff5\u3001\u5931\u6557\u3067\u3059...');\r\n\r\n});\r\n\r\n<strong>promise\r\n    .then(function(result){\r\n\r\n       <\/strong> document.write(result);<strong>\r\n\r\n    })\r\n    .catch(function(result){\r\n\r\n        <\/strong>document.write(result);<strong>\r\n\r\n    });<\/strong><\/pre>\n<p>IE\uff1a \u5931\u6557&#8230;<\/p>\n<p>\u975e\u540c\u671f\u306e\u6a5f\u80fd\u3092\u958b\u767a\u3059\u308b\u5834\u5408\u306b\u306f<code>Promise<\/code>\u304c\u3068\u3066\u3082\u4fbf\u5229\u3067\u3059\u304c\u3001\u3053\u308c\u3082\u5b9f\u884c\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u305f\u3060\u3001Ajax\u901a\u4fe1\u3092\u3059\u308b\u5834\u5408\u3067\u3057\u305f\u3089\u3001<a href=\"https:\/\/github.com\/axios\/axios\">axios<\/a>\u306a\u3069\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3048\u3070\u6bd4\u8f03\u7684\u697d\u306b\u5b9f\u88c5\u304c\u3067\u304d\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1284\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/09\/Screenshot-from-2018-09-24-00-23-43.png\" alt=\"\" width=\"212\" height=\"38\" \/><\/p>\n<p>edge\uff1a \u6210\u529f\uff01\uff08\u305f\u3060\u3057\u3001\u3053\u306e\u30b3\u30fc\u30c9\u3067\u306f\u305a\u3063\u3068\u30ed\u30fc\u30c9\u4e2d\u306e\u307e\u307e\u3067\u3057\u305f\uff09<\/p>\n<h1>\u914d\u5217\u3078\u633f\u5165<\/h1>\n<pre>var partialWeekNames = ['\u706b',  '\u6c34',  '\u6728'];\r\nvar fullWeekNames = ['\u65e5', '\u6708', <strong>...partialWeekNames<\/strong>,  '\u91d1',  '\u571f'];\r\ndocument.write(fullWeekNames.join(','));<\/pre>\n<p>IE\uff1a <strong>\u5931\u6557&#8230;<\/strong><\/p>\n<p>\u500b\u4eba\u7684\u306b\u3042\u307e\u308a\u3053\u306e\u66f8\u304d\u65b9\u3092\u3057\u305f\u3053\u3068\u306f\u306a\u3044\u306e\u3067\u3059\u304c\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3002\u305f\u3060\u3001\u4f7f\u3048\u308b\u3068\u4fbf\u5229\u306a\u65b9\u6cd5\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1285\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/09\/Screenshot-from-2018-09-24-00-24-44.png\" alt=\"\" width=\"207\" height=\"39\" \/><\/p>\n<p>edge\uff1a <strong>\u6210\u529f\uff01<\/strong><\/p>\n<h1>Map\u578b<\/h1>\n<pre>var map = new Map();\r\nmap.set('eyes', '\u76ee');\r\nmap.set('nose', '\u9f3b');\r\nmap.set('mouth', '\u53e3');\r\ndocument.write(map.get('eyes') + map.get('nose') + map.get('mouth'));<\/pre>\n<p>IE\uff1a <strong>\u5931\u6557&#8230;<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7394\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/05\/js_map_1.png\" alt=\"\" width=\"286\" height=\"40\" \/><\/p>\n<p><strong>\u3010\u8ffd\u8a18\uff1a2020.5.17\u3011<\/strong>\u3053\u3061\u3089\u3082 <a href=\"https:\/\/github.com\/juner\" target=\"_blank\" rel=\"noopener noreferrer\">juner<\/a>\u3055\u3093\u304b\u3089\u306e\u3054\u6307\u6458\u3067\u5909\u66f4\u3057\u307e\u3057\u305f\u3002\u3055\u3089\u306b\u3001\u3053\u306e\u30b3\u30fc\u30c9\u306f<code>juner<\/code>\u3055\u3093\u306b\u66f8\u3044\u3066\u3044\u305f\u3060\u3044\u305f\u3082\u306e\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3057\u305f\ud83d\ude0a\u2728<\/p>\n<p>edge\uff1a \u6210\u529f\uff01<\/p>\n<p>\u304a\u3069\u308d\u304d\u307e\u3057\u305f\u3002edge\u306f\u3068\u3082\u304b\u304f\u3001<del>IE\u3067\u3082<code>Map<\/code>\u304c\u5b9f\u884c\u3067\u304d\u308b\u3093\u3067\u3059\u306d\u3002<br \/>\n<\/del><span style=\"font-size: 1rem;\">IE\u3067\u306f\u5b9f\u884c\u3067\u304d\u307e\u305b\u3093\u3002<\/span><\/p>\n<h1>Set\u578b<\/h1>\n<pre>var familyNames = new Set(['\u9234\u6728', '\u4f50\u85e4', '\u5c71\u7530']);\r\ndocument.write(familyNames.size); \/\/ 3\r\n\r\nif(familyNames.has('\u4f50\u85e4')) {\r\n\r\n    document.write('\u4f50\u85e4\u3055\u3093\u304c\u5165\u3063\u3066\u3044\u307e\u3059\uff01');\r\n\r\n}<\/pre>\n<p>IE: <strong>\u5931\u6557&#8230;<\/strong><\/p>\n<p>\u30a8\u30e9\u30fc\u306f\u8868\u793a\u3055\u308c\u307e\u305b\u3093\u3067\u3057\u305f\u304c\u3001<code>size<\/code>\u304c<code>3<\/code>\u3068\u306a\u308b\u3068\u3053\u308d\u304c<code>0<\/code>\u306b\u306a\u308b\u306a\u3069\u3001\u5b9f\u884c\u304c\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u3080\u3057\u308d\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u65b9\u304c\u3044\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1287\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/09\/Screenshot-from-2018-09-24-00-27-55.png\" alt=\"\" width=\"198\" height=\"75\" \/><\/p>\n<p>edge\uff1a <strong>\u6210\u529f\uff01<\/strong><\/p>\n<h1>\u914d\u5217\u3067\u6761\u4ef6\u3092\u30af\u30ea\u30a2\u3059\u308b\u6700\u521d\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97<\/h1>\n<pre>var scores = [80, 57, 92, 32, 89, 95, 40];\r\nvar result = scores.<strong>find(function(value, index, array){<\/strong>\r\n\r\n    return (value &gt; 90);\r\n\r\n<strong>});<\/strong>\r\ndocument.write('\u4e00\u756a\u6700\u521d\u306b90\u70b9\u3092\u8d85\u3048\u305f\u70b9\u6570\u306f\u300c'+ result +'\u70b9\u300d\u3067\u3059\u3002'); \/\/ 92<\/pre>\n<p>IE: <strong>\u5931\u6557&#8230;<\/strong><\/p>\n<p>\u30cd\u30a4\u30c6\u30a3\u30d6\u3067\u3053\u3046\u3044\u3063\u305f\u8a18\u8ff0\u304c\u3067\u304d\u308b\u3068\u3068\u3066\u3082\u4fbf\u5229\u3067\u3059\u304c\u3001\u307e\u3060IE\u3067\u306f\u672a\u5bfe\u5fdc\u3067\u300c<span style=\"text-decoration: underline;\">SCRIPT438: \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f `find` \u30d7\u30ed\u30d1\u30c6\u30a3\u307e\u305f\u306f\u30e1\u30bd\u30c3\u30c9\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u305b\u3093\u3002<\/span>\u300d\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1288\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/09\/Screenshot-from-2018-09-24-00-30-16.png\" alt=\"\" width=\"540\" height=\"39\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/09\/Screenshot-from-2018-09-24-00-30-16.png 540w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/09\/Screenshot-from-2018-09-24-00-30-16-300x22.png 300w\" sizes=\"auto, (max-width: 540px) 100vw, 540px\" \/><\/p>\n<p>edge: <strong>\u6210\u529f\uff01<\/strong><\/p>\n<h1>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/h1>\n<p>\u4eca\u56de\u306e\u691c\u8a3c\u3067\u4f7f\u3063\u305fJavaScript\u30b3\u30fc\u30c9\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u304d\u307e\u3059\u3002HTML\u30d5\u30a1\u30a4\u30eb\u3060\u3051\u306a\u306e\u3067\u5c55\u958b\u3057\u3066\u3059\u3050\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3088\uff01<\/p>\n<a  data-e-Disable-Page-Transition=\"true\" class=\"download-link\" title=\"\" href=\"https:\/\/blog.capilano-fw.com?download=1312&amp;tmstv=1777503691\" rel=\"nofollow\" id=\"download-link-1312\" data-redirect=\"false\" >\n\tIE11\u3067\u4f7f\u3048\u306a\u3044\u6700\u65b0JavaScrit\u30b3\u30fc\u30c9\uff08ES6\uff09<\/a>\n\n<h1>\u304a\u308f\u308a\u306b<\/h1>\n<p>\u7d50\u679c\u3068\u3057\u3066\u3001IE\u3067\u5b9f\u884c\u304c\u3067\u304d\u305f\u306e\u306f\u4ee5\u4e0b\u306e\uff13\u3064\u3060\u3051\u3068\u3044\u3046\u7d50\u679c\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<ul>\n<li>let<\/li>\n<li>const<\/li>\n<li>Map<\/li>\n<\/ul>\n<p>\u305d\u3057\u3066\u3001\u9006\u306b<code>edge<\/code>\u3067\u306f\u5168\u3066\u306e\u5b9f\u884c\u304c\u6210\u529f\u3057\u307e\u3057\u305f\u3002\uff08\u3082\u3061\u308d\u3093chrome\u3067\u3082\u5168\u3066OK\u3067\u3059\uff09<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001JavaScript\u672a\u5bfe\u5fdc\u306e\u4ef6\u306f\u3001\u30de\u30a4\u30af\u30ed\u30bd\u30d5\u30c8\u306e\u6020\u6162\u3068\u3044\u3046\u3088\u308a\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u9811\u306a\u306bIE\u306b\u56fa\u57f7\u3057\u3066\u3044\u308b\u3068\u3044\u3046\u5074\u9762\u3082\u3042\u308b\u306e\u304b\u306a\u3068\u3044\u3046\u5370\u8c61\u3092\u53d7\u3051\u307e\u3057\u305f\u3002<\/p>\n<p>\u305c\u3072\u4eca\u5f8cIE\u306e\u30b7\u30a7\u30a2\u304c\u6e1b\u3063\u3066\u3001edge\u306e\u65b9\u3078\u306e\u79fb\u884c\u304c\u9032\u3080\u3053\u3068\u3092\u9858\u3063\u3066\u3044\u307e\u3059\uff01<\/p>\n<p>\u3067\u306f\u3067\u306f\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-519 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/05\/21.png\" alt=\"\" width=\"192\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/05\/21.png 192w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/05\/21-180x300.png 180w\" sizes=\"auto, (max-width: 192px) 100vw, 192px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u524d\u56de\u306e\u8a18\u4e8b\u3001\u5b8c\u5168\u306a\u624b\u9806\uff01VueJS\u3067\u81ea\u52d5\u30da\u30fc\u30b8\u9001\u308a\u3059\u308b\u65b9\u6cd5\u3067\u306f\u3001ES6\u3092\u4f7f\u3063\u3066\u30da\u30fc\u30b8\u9001\u308a\u6a5f\u80fd\u3092\u5b9f\u88c5\u3057\u3066\u307f\u307e\u3057\u305f\u304c\u3001\u305d\u306e\u969b\u3075\u3068\u7591\u554f\u306b\u601d\u3063\u305f\u3053\u3068\u304c\u3042\u308a\u307e\u3057 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.capilano-fw.com\/?p=1273\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;\u6ce8\u610f\uff01IE11\u3067\u4f7f\u3048\u306a\u3044\u6700\u65b0JavaScrit\u30b3\u30fc\u30c9\uff08ES6\uff09&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":1311,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19,97,15],"tags":[89,88],"class_list":["post-1273","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-javascript","category-97","category-15","tag-edge","tag-ie"],"_links":{"self":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/1273","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1273"}],"version-history":[{"count":31,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/1273\/revisions"}],"predecessor-version":[{"id":8714,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/1273\/revisions\/8714"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/media\/1311"}],"wp:attachment":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1273"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1273"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}