ãã®æ¸ç±ã¯Creative Commons Attribution-NonCommercialã® ã©ã¤ã»ã³ã¹ ã§å ¬éããã¦ãã¾ãã ã¾ããPDFã¨ãã¦ã¬ã³ããªã³ã°ãããã¼ã¸ã§ã³ã¯ä»¥ä¸ãããã¦ã³ãã¼ããããã¨ãã§ãã¾ãã
This document was originally taken from Luke Hoban's excellent es6features repo. Go give it a star on GitHub! Introductionâ ECMAScript 2015 is an ECMAScript standard that was ratified in June 2015. ES2015 is a significant update to the language, and the first major update to the language since ES5 was standardized in 2009. Implementation of these features in major JavaScript engines is underway no
Direct Proxiesã¨ã¯ Direct Proxiesã£ã¦ã®ã¯ES6ã®æ©è½ã®ä¸ã¤ã§ããªãã¸ã§ã¯ããã©ãããã¦æ§ã ãªã¿ã¤ãã³ã°ã§ä»»æã®å¦çãå·®ãè¾¼ããã¨ããã¨ã£ã¦ã夢åºããªã³ã°ãªæ©è½ã harmony:direct_proxies [ES Wiki] ä¾ãã°ãããããã£ã®get/setæã«å¦çãå·®ãè¾¼ãã®ã¯ãããªæãã ï¼Direct Proxiesã¯ç¾ç¶ã ã¨Firefoxã§ããåããªããããã¦ä¸è¨ã®ã³ã¼ãã¯ç¡é§ã«ãã³ãã¬ã¼ããªãã©ã«ä½¿ã£ã¦ãã®ã§Firefox 34以ä¸ãããªãã¨åããªãï¼ // Proxyã使ã£ã¦å¦çãæ¸ãæãã対象ã®ãªãã¸ã§ã¯ã var target = { foo: 'bar' }; // Proxyã使ã£ã¦targetã«å¯¾ãã¦handlerãé©ç¨ããproxyãªãã¸ã§ã¯ããå¾ã var proxy = new Proxy(target, { // ããããã£èª
æ¦è¦ ãã³ãã¬ã¼ãæååãè¨è¿°ã§ããæ§æãå®è£ ãããã ãã³ãã¬ã¼ããªãã©ã« åºæ¬ã®ä½¿ãæ¹ ããã¯ã¯ãªã¼ãã ` ãã§å²ãã æåããæååãªãã©ã«åæ§ã«æååã¨ãã¦è©ä¾¡ãããã var t = `ãã³ãã¬ã¼ã` var s = "ãã³ãã¬ã¼ã" console.log(t) // "ãã³ãã¬ã¼ã" console.log(t == s) // true æ¹è¡ããã®ã¾ã¾èªèãããã var t = `ãã³ã ã¬ã¼ã` var s = "ãã³ã\n"+ "ã¬ã¼ã" console.log(t) // "ãã³ãâã¬ã¼ã\t" console.log(t == s) // true æååä¸ã«å¤æ°ãªã©ãåãè¾¼ã ãªãã©ã«ä¸ã®ã${ãã¨ã}ãã§å²ã¾ããé¨åã¯å¼ã¨ãã¦è©ä¾¡ãããã var n = 123, f = () => 339 var t = `0${ n }45${ f() * 2 }9` v
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}