noModule
㯠HTMLScriptElement
ã¤ã³ã¿ã¼ãã§ã¤ã¹ã®ããããã£ã§ãES ã¢ã¸ã¥ã¼ã«ã«å¯¾å¿ãããã©ã¦ã¶ã¼ã§ã¹ã¯ãªãããå®è¡ãããã©ãããè«çå¤ã§ç¤ºãã¾ããå®éããã㯠JavaScript ã¢ã¸ã¥ã¼ã«ã«å¯¾å¿ãã¦ããªãå¤ããã©ã¦ã¶ã¼ã§ä»£æ¿ã¹ã¯ãªãããæä¾ããããã«ä½¿ç¨ãããã¨ãã§ãã¾ãã
ãã㯠<script>
è¦ç´ ã® nomodule
屿§ãåæ ãããã®ã§ãã
è«çå¤ã§ãtrue
㯠ES ã¢ã¸ã¥ã¼ã«ã«å¯¾å¿ãã¦ãããã©ã¦ã¶ã¼ã§ã¯ã¹ã¯ãªãããå®è¡ããªããã¨ãæå³ããfalse
ã¯ããã§ãªããã¨ãæå³ãã¾ãã
<script id="el" nomodule>
// ãã©ã¦ã¶ã¼ã JavaScript ã¢ã¸ã¥ã¼ã«ã«å¯¾å¿ãã¦ããå ´åã以ä¸ã®ã¹ã¯ãªããã¯å®è¡ããã¾ããã
console.log("ãã®ãã©ã¦ã¶ã¼ã¯ JavaScript ã¢ã¸ã¥ã¼ã«ã«å¯¾å¿ãã¦ãã¾ãã");
</script>
const el = document.getElementById("el");
console.log(el.noModule); // åºå: true
仿§æ¸ ãã©ã¦ã¶ã¼ã®äºææ§
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4