Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?
ã¯ããã« ã¿ãªããã¯Chromeã®æ¡å¼µæ©è½ã使ã£ã¦ãã¾ããï¼ åã使ã£ã¦ãã¾ãããæ¡å¤Chromeã®æ¡å¼µæ©è½ãä½ãã®ã¯ç°¡åã§ãã ä»åã¯ãæ®æ®µã®æ¥åã®å¹çãä¸ããã®ãå ¼ãã¦èªä½ãã¦ã¿ã¾ãã! æä½éæºåãããã® manifestãã¡ã¤ã« Javascriptãã¡ã¤ã« ã¶ã£ã¡ãããããã ãã§åãã¾ãã å®éã«ä½ã£ã¦ã¿ãã ããã§ã¯å®éã«ä½æãã¦ããã¾ãããã ä»åã¯Dã¨Vãæ¼ãã ãã§ãMarkdownã®ãªã³ã¯ãä½æããæ¡å¼µæ©è½ãä½æãã¦ããã¾ãã ã¾ãã¯ãmanifestãã¡ã¤ã«ããè¨å®ãã¦ããã¾ã! manifestãã¡ã¤ã« ãåèã«ãã¦ãåå¿é²ãå ¼ãã¦èª¬æãã¦ããã¾ãã ä»åã¯ãæä½éã®è¨å®ãè¡ãã¾ãã { "manifest_version": 3, "name": "Create markdown link", "version": "1.0.0", "icons": { "16":
ã¯ããã« ã¾ãâã®è¨äºãè¦ã¦ãªãæ¹ã¯ãã²è¦ã¦ãã ããï¼ èªåã«ã¨ã£ã¦ã¯ãã®è¨äºã«ã¯ããã£ãããã³ã¬ï¼ããªãã¯ããã¯ãå¤ããç¹ã«è§£èª¬ããªãã£ãã®ã§ãããã調ã¹ã¦ããä¼æ¥ãæ¶ãã¦ã¾ãã... ãªã®ã§ãã®æéã®ä¾é¤ãããã¦ãèªåãç¥ããªãã£ãé¨åãä¸å¿ã«ãåè¶ãªããå è¨äºã®è§£èª¬ãæ¸ãã¦ã¿ããã¨æãã¾ãã ã¡ãªã¿ã«ã以ä¸ãå è¨äºã®ã³ã¼ããã®ã¾ã¾ãå®è£ ãããã®ã§ãããããã«æ²è¼ã³ã¼ãã ãã§è¦ç´ ãã°ãªã°ãªåãã¾ããã See the Pen js-drag-move-original by www-tacos (@www-tacos) on CodePen. åè³1: $img ã¾ãã³ã¼ãã®ãã <img id="$img" src="https://js.cx/clipart/ball.svg" width="40" height="40"> <script> $img.onpointermove
ã¯ããã« ãã®è¨äºã§ã¯ãconsoleã¡ã½ããã«ã¤ãã¦ç´¹ä»ãè¡ã£ã¦ããã¾ããconsoleã¡ã½ããã«ã¯ä¾ãã°console.log()ãªã©ãæãããã¾ããwebéçºã«ããã¦console.log()ã使ç¨ããæ¹ã¯å¤ãããããã¾ããããããconsoleã«ã¯console.log()以å¤ã«ãæ§ã ãªã¡ã½ãããããã®ã§ãç¶æ³ã«åããã¦ä½¿ãåãããã¨ã§å°ãã§ãå¿«é©ãªãããã¯ãéçºã©ã¤ããç®æãã¾ãããã å¼ç¤¾Nucoã§ã¯ãä»ã«ãæ§ã ãªãå½¹ç«ã¡è¨äºãå ¬éãã¦ãã¾ããããã£ãããOrganizationã®ãã¼ã¸ãè¦ãã¦ã¿ã¦ãã ããã ã¾ããNucoã§ã¯ä¸ç·ã«åã仲éãåéãã¦ãã¾ãï¼èå³ããæã¡ããã ããæ¹ã¯ããã¡ãã¾ã§ã consoleã«ã¤ã㦠consoleãªãã¸ã§ã¯ããç¨ãããã¨ã§å¤æ°ã®å¤ãªã©ãã³ã³ã½ã¼ã«ä¸ã«åºåãããã¨ãã§ãã¾ãã主ã«åºåã®ç¢ºèªã§ãã£ããä¸å ·åã®åå ç¹å®ãªã©ã®ãããã¯ããããã«
ãã³ãã¬ã¼ãæåå ä»ã¾ã§ã¯+ã使ã£ããããªããã°ãããªããã³ã¼ãã¼ã·ã§ã³ããã®é½åº¦å¿ è¦ã ã£ããããããã³ãã¬ã¼ãæååã使ãã¨ãæååã®ä¸ã«åãè¾¼ããã¨ãã§ããã 使ãæ¹ã¯æååã ` ããã¯ã¯ã¦ã©ã¼ãã§å²ã¿ãjsã®æã¯${}ã§å²ãã const name = "tami"; const age = 20; const favo = { food: "ããã", color: "赤" }; const hello =`ç§ã®ååã¯${name}ã§ããå¹´é½¢ã¯${age}æ³ã§ãã 好ããªé£ã¹ç©ã¯${favo["food"]}ã好ããªè²ã¯${favo["color"]}ã§ãã`; console.log(hello)
ã¯ããã« åæ稿ã§ãã ç¥ã£ã¦ãã便å©ã«ãªãå°æãç¡ãã£ãã®ã§ã¾ã¨ãã¾ããã ãå°æãç¥ããã...ã ãã©æ¤ç´¢ãã¦ãåºã¦ããªã...ï¼ã ããããæã«å½¹ç«ã¡ã¾ãã æ¯è¼çå¤ããã¼ã¸ã§ã³ã®JSã§ã¯ä¸é¨ã®å°æã使ããªãããããã¾ããã éæ追å äºå®ã§ããä»ã«å°æããåãã®æ¹ã¯ã³ã¡ã³ãæ¬ã«GOã ããã¨ãã ãã®è¨äºã¯ãããã¾ã§"ãããªããæ¹ãããã"ã¨ç´¹ä»ãã¦ããã ããªã®ã§ãä½ã§ãããã§ããããã®å°æã使ãã¨ãããã£ã¦ã³ã¼ãã®å¯èªæ§ãä¸ããå¯è½æ§ãããã¾ããã³ã¼ããµã¤ãºã¨å¯èªæ§ã天秤ã«ããã¦ã©ã¡ããè¯ãããé½åº¦ç¢ºèªãã¾ãããã è¨äºå ã®ééã£ãé¨åã®ææçã¯ãã®è¨äºã®ã³ã¡ã³ããç·¨éãªã¯ã¨ã¹ãã§ãã¦ä¸ããã å½æ¹ã³ã¼ãã´ã«ãã¡ã¼ãªã®ã§ããã¤ãæ°ç縮å°æãå ¥ãã¦ãããã¨ããäºæ¿ãã ããï¼ä¸å¿è©²å½ããç¯ã«ã¯ï¼ãã¤ãã¦ãã¾ãï¼ã é å é åã®éè¤ããå¤ãåé¤1 const meta = ["foo",
Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article? ãã®è¨äºã¯Aizu Advent Calendar 2015 @ababup1192ã®è¨äºã§ãã innocentyknrãã <- åã®äººãã»ã次ã®äºº -> masapontoãã è¨äºã®å 容 AltJSã®ä¸ç¨®ã§ããScala.jsããªã¹ã¹ã¡ããè¨äºã§ãã以ä¸ã®ç¹ã軸ã¨ãã¦ç´¹ä»ããã¦ããã¾ããScalaã¨Scala.jsã®é åãèªãç¶ããè¨äºãªã®ã§ãç°å¢æ§ç¯è³æã¨ãã¦ã¯å½¹ã«ç«ããªãã¨æãã¾ãã Webããã³ãã¨ã³ãéçºã®ç¾ç¶ã¨ç°å¢ è¨èªã®å¼·ã¿ Scala.jsã使ã£ãã¢ãã³ãªéçº Scala.jsã¨ã¯ å称ããåããéãAltJSã®ä¸
ã¯ããã« promiseã使ãã¨ãããã¤ãpromiseã¡ã½ãããã§ã¼ã³ã§è¨è¼ãã¦ãã¾ããï¼ãasync/awaitãå©ç¨ãã¦ãã¾ããï¼ ãã¡ããç¶æ³ã«ãã£ã¦ä¸¡æ¹æ¸ãã®ãæ®ã©ã ã¨ã¯æãã®ã§ãããç§ã¯async/awaitã®æ¹ãåæçãªæ¸ãæ¹ããã«èªã¿ãããããããªãã¹ããã¡ãã§è¨è¼ãã¦ãã¾ããããããªãããã¨ã©ã¼ãã³ããªã³ã°ãç解ã§ãã¦ããªãã£ããããã¨ã©ã¼ã®æå¨ãçªãæ¢ããã®ã«è¦å´ãã¦ãã¾ãã¾ããã ãã®ããããããæ©ã«async/awaitã«ãããã¨ã©ã¼ãã³ããªã³ã°ã«ã¤ãã¦åå¿é²çã«ã¾ã¨ãã¦ããã¾ãã ãã®è¨äºã®ã¾ã¨ã; catchãããã¨ã©ã¼ã¯rejectã®ã¿ããthrowãããã¨ã©ã¼ãå«ã¾ããã â両æ¹catchã§ãã asyncé¢æ°ã«ãããå¦çã®é åºãawaitãããå ´åã¨ãªãå ´å âawaitããªãå ´åã«ã¯åæçã«å¦çãå®è¡ãããcatchã§ããªããªã ã¨ã©ã¼å¦çãå¤å´ã«ä¼æã
ã¯ããã« ç§ã¯é·ãéã¬ã¬ã·ã¼ã³ã¼ãã¨å ±ã«ä»äºããã¦ãã¾ããããjQueryã®éè¦æ§ã¯ä¾ç¶ã¨ãã¦é »ç¹ã«è©±é¡ã«ä¸ãããããã¯ã®ä¸ã¤ã§ããã©ã¤ãã©ãªèªä½ã¯ä¾¿å©ãªã¾ã¾ã§ãããããã¯å¥ã®æ代ã®ãã¼ãºãå®ç§ã«æºããã¦ãã¾ããã ç¾å¨ãç§ãã¡ã¯æ¢ã«ES2023ã«ã¤ãã¦è©±ãã¦ãã¾ãããéå»ã«jQueryãã«ãã¼ãã¦ããã»ã¨ãã©ã®æ©è½ã¯ããã§ã«2015å¹´ã«ãªãªã¼ã¹ãããES6ã«åãè¾¼ã¾ãã¦ãã¾ãã ES6ã®æ¨æºã¯æ¢ã«åºç¯ã«ãµãã¼ãããã¦ããã96ï¼ ã®ã¬ãã«ã«éãã¦ãã¾ãï¼åºå ¸ï¼caniuse.comï¼ããã®ãããç¹ã«è¦ç´ ã®é¸æãã¹ã¿ã¤ãªã³ã°ãã¢ãã¡ã¼ã·ã§ã³ããã¼ã¿ã®åå¾ãªã©ã®åºæ¬çãªã¿ã¹ã¯ã«ã¤ãã¦ã¯ãã©ã¤ãã©ãªã®ä½¿ç¨ãè¦ç´ãè¯ãã¿ã¤ãã³ã°ããããã¾ããã 以ä¸ã®ãããã¯ã¯ãããã¤ãã®æ¨æºçãªjQueryã®ãã¿ã¼ã³ã¨ãããã«ç¸å½ããããã©JavaScriptã§ã®ææ³ã示ãåèè³æã¨ãã¦å½¹ç«ã¤ã¨æãã¾ãã è¦ç´
ããã«ã¡ã¯ãã¬ãããã§ãã è¿å¹´ãWebããã³ãã¨ã³ãã§ã¯ãµã¤ãã®ããã©ã¼ãã³ã¹ã®éè¦æ§ãé«ã¾ã£ã¦ãã¾ãã ä¾ãã°ãGoogleã¯Core Web Vitalã¨ããããã©ã¼ãã³ã¹ã«ææ¨ãæ¤ç´¢çµæã®ã©ã³ãã³ã°è¦å ã«çµã¿è¾¼ã¿ã¾ããã ã¾ããè¿å¹´ã®æä¼æ¥ããããã©ã¼ãã³ã¹ã®æ¹åã«åãçµãã çµæãã»ãã·ã§ã³æ°ãï¼ ã¢ãããCVRãï¼ ã¢ãã...ããªã©ã®äºä¾ã¯ææã«ãã¨ã¾ããªãã§ãããã ããã©ã¼ãã³ã¹ãã¥ã¼ãã³ã°ããããã«ã¯ãå®éçã«è¨æ¸¬ãã¦ããã«ããã¯ãæ¢ããããªããããã¦ã³ãªã¢ããã¼ããããã¾ãã ããããªãããæã«ã¯åæ¬ããã¯çã«ãã¦ãã¼ãçã£ç«¯ãã試ãã¦ããããã ã¢ãããªã¢ããã¼ããæå¹ã«ãªããã¨ããã£ãããæ¥ã ã®ã³ã¼ãã£ã³ã°ã§ããã©ã¼ãã³ã¹ãæèããã³ã¼ããæ¸ããã¨ã¯å¤§åã§ãããã ãã®è¨äºã§ã¯ããã©ã¼ãã³ã¹æé©åã®ãã¦ãã¼ãç´¹ä»ãã¾ãã ããã©ã¼ãã³ã¹æ¹åã®æ½çãæãæµ®ãã°ãªãæãããã³
æ¢ã« Stage 4 ã«ãªã£ã¦ããã®ã§è«¦ãã¦ãããã§ãããæµç³ã«è¦éããªãããªã¨æã£ãã®ã§ TC39 ã® Discourse ã«ãããã¯ããã¦ã¦ã¿ã¾ãããæè¦ãããæ¹ã¯ãã¡ãã«ãé¡ããã¾ãã https://es.discourse.group/t/fix-at/983 è°è«ã«ä¼´ã£ã¦ç§ãå®éã«æ¬²ããã£ããã®ãã¢ã¸ã¥ã¼ã«ã«ãã¦å ¬éãã¦ã¿ã¾ããã https://github.com/petamoriken/safe-at ããã¨ãã¾ãã¡ã¦ã¼ã¶ã¼ããã®å£°ãä¼ãã£ã¦ããªãæããããã®ã§ããã·ã¥ã¿ã° #fix_ecmascript_at ãç¨æãã¦ã¿ã¾ãããååããããããããããã¾ãã String#char{At, CodeAt} ã¨ããåå¨ãå¿ãã¦ããã§ããããã®ä¼¼ãååã®ã¡ã½ãããã¡ãå¼æ°ãæ´æ°ã«ä¸¸ããã®ã« String#at ã丸ããªãã®ã¯ãããã«å¤ã ã¨ãããã¨ã«æ°ã¥ãã¦ãã¾ã£ãã®ã§ãèª
ãã®è¨äºã¯ãæ¨æ¥å ¬éããã以ä¸ã®è¨äºã«å¯¾ããã¢ã³ãµã¼è¨äºã§ããTypeScriptã§åå®ç¾©ã«åãæ´¾çé ï¼èªç§°ï¼ã¨ãã¦ããã®ãé¡ã«å¯¾ãã¦å¥ã®è¦ç¹ããå ãå½ã¦ã¦ãããããã«ãã®è¨äºãç¨æãã¾ããã TypeScript ã®åå®ç¾©ã«åããããããï¼ ã¾ãæåã«ããã®è¨äºï¼ä»¥ä¸ã§ã¯å è¨äºã¨å¼ã³ã¾ãï¼ã®èè ãæ»æããããå è¨äºã®å 容ãå¦å®ããæå³ã¯ãªããã¨ããç解ãã ãããçµå±ã®ã¨ãããèãæ¹ãç°ãªããåæãç°ãªãããç°ãªãçµè«ã«ãªã£ã¦ããã ããªã®ã§ããTypeScriptã使ãçããããããããªè¦³ç¹ããè¦ãæ å ±ãåå¾ããèªåã®ç¶æ³ã«å¿ããé©åãªèãæ¹ã»å¤æãã§ããããã«ãããã¨ããã®è¨äºã®ç®çã§ãã è¦ç´ 大ããªã³ã¼ããå°ããå解ãã¦ãæ¬è³ªçãªé£ãããæ¶ããããã§ã¯ãªããï¼ åã¯ããã¥ã¡ã³ããªãã ããæ£ç¢ºã«æ¸ãããï¼ å¤çã¨ã®æ¥ç¶ã妥åããã«åã·ã¹ãã ã§è§£æ±ºããããï¼ æ©æ¢°ã«ã§ããä»äºã人éããã
ããã«ã¡ã¯ãããã³ãã¨ã³ãã¨ã³ã¸ãã¢ã®ã¦ãã¼ã§ãã åã®è©³ãããããã£ã¼ã«ã¯ãã¡ã Reactãä»äºã§ä½¿ãããªããã人ãReactã®ç¥èã«ä¸å®ããã人ã«åãã¦ãå ·ä½çãªåå¼·æ¹æ³ã®ãã¼ãããããã¾ã¨ãã¾ããã ãã®è¨äºã«ã¤ã㦠ãã®è¨äºã¯ããJavaScriptã§ã®é¢æ°åããã°ã©ãã³ã°ãã«ã¤ãã¦ãReactãå¦ã¶éã«è¶³ãå¼ã£å¼µããªãç¨åº¦ã«ã¾ã¨ãã¾ããã æ®æ®µJavaScriptã«è§¦ãã¦ããªãããReactã¸ã®å¦ç¿éå£ãæãã¦ããæ¹ãªã©ã®åèã«ãªãã°å¹¸ãã§ãã ãªãReactå¦ç¿ã«ããã¦ãé¢æ°åããã°ã©ãã³ã°ã®ç¥èãå¿ è¦ãªã®ãï¼ Reactã®ã©ã¤ãã«ã«ãããVue.jsã¯htmlãcssã¨Vue.jsç¹æã®ãã³ãã¬ã¼ãæ§æãçµã¿åãããäºã§ãJavaScriptåãä½ãã¦ãæ¸ããããä½ãã«ãªã£ã¦ãã¾ãã ããã«å¯¾ãã¦ãReactã¯åçãã·ã³ãã«ã§ä¸è²«ãã¦ãããç¹æã®æ±ºã¾ãäºã¯å°ãªãã®ãç¹å¾´ã§ã
ã©ãããä¸çºå²å¹³ã§ãã Ruby on Railsã§Webã¢ããªãéçºä¸ãªã®ã§ãããã©ããªããã°ã©ãã³ã°è¨èªããã¬ã¼ã ã¯ã¼ã¯ã使ã£ã¦ãã¦ãJavaScriptã絡ãã§ãã¾ãã æ£ç´ãªè©±ãHTMLãCSSã¯åãããªãé¨åã¯ãã®é½åº¦èª¿ã¹ã¦ããã°ããã£ã½ã©æã®è¾¼ãã ã¢ããªã±ã¼ã·ã§ã³ã§ã¯ãªãéãã¯ç´ 人ã§ããããªãã®ã¯ãªãªãã£ã«ä»ä¸ãããã¨ããæè¦ãããã®ã§ãããJavaScriptãäºæ³ä»¥ä¸ã®é£æµãªãã§ãããã ããã調ã¹ã¦ãããã¡ã«ã©ãããããã³ãã¨ã³ãã ãã§ã¯ãªãããã¯ã¨ã³ãã§ã使ããããããããªãã§ãã...ã¦ãã¨ã¯ãJavaScriptãæå¼·ãªã®ã§ã¯...!?ã¨ããçåããè²ã ã¨JavaScriptã«èª¿ã¹ã¦ã¿ã¾ããã®ã§ãå°ãã°ãããä»ãåãä¸ãã...ã ã§ã¯ãã©ããï¼ ä¸çªèº«è¿ãªã®ã¯ãWebãµã¤ãã表示ãããã©ã¦ã¶ä¸ã§åãããã°ã©ã ï¼ã¯ã©ã¤ã¢ã³ããµã¤ãã»ã¹ã¯ãªããï¼ã§ããç¡ãã¦ãWebãµ
åæ© ååã®è¨äºãæ稿ãããã¨ãæSNSã§éç¥ããã¨ããããã®SNSã§ãããªã³ã¡ã³ããããã ããã転è¨ãã許å¯ãåã£ãããã§ã¯ç¡ãã®ã§ç§ãªãã«è¦ç´ããã¦ããã ãã¨ã ãªããããªããªããã¼ãªæ¸ãæ¹ããã¦ã¾ã§forã使ãã®ãé¿ããã®ã ãããªæ¸ãæ¹ããã¦å¯èªæ§ãä¸ããããããªãç´ ç´ã«forã使ãæ¹ãè¯ã ã¨ãããã¨ã ã¨ç解ãã¦ããã ãªãã»ã©ãä¸çããããã ããããä¸æ¹ã§ãååè²¼ã£ãStackOverflowã®Q&Aã¯ãªããªãã®äººæ°è¨äºï¼è³ªåã«1243ãã¤ã³ããåçã«æ大ã§1559ãã¤ã³ãï¼ãªã®ã§ãå¤å°ããªããã¼ãªãã¨ããã¦ã§ãforãæ¸ããããªãï¼ï¼ãã¨ããæè¦ããã¤ããã°ã©ããä¸å®ä»¥ä¸ããã®ã ãããå½ç¶ç§ããã®1人ã ã ã¨ãããã¨ã§ããã®è¨äºã§ããªãããã¾ã§æåºå°ã«ãªã£ã¦ã¾ã§forãæ¸ããããªãã®ããã説æãããã¨ã«ããã å°ãä»åã¯ååã®è¨äºã¤ãªããã§è¨èªã¯JavaScriptã使ããã
ãã®è¨äºã«æè¡çãªè©±ã¯ããã¾ããã ãã ãããã°ã©ãã³ã°ã£ã¦æ¥½ãããªããã¨å®æããã¦ãããã®ããä¸çªå«ãã ã£ãJavaScriptã ã£ãã¨ãã話ã§ãã ãããèªåã«ã¯ããã°ã©ãã³ã°ã®æè½ããªãã¨æã£ã¦ãã人ããããããããã§ãããã°ã©ãã³ã°ã¨ä¸ç·ã«äººçãæ©ããããã§ããï¼ãã¨ããåãåå¿è ããã®ææ³ãããã«æ®ãã¦ããããã¨æãã¾ããã¤ã¾ããçéã§ââãã§ããªãã£ã人éã§ããããã°ã©ãã³ã°ã楽ãããã¨ã¯å¹³çã«å¯è½ããªã®ããã¨ã ãã ã¡ãã£ã¨ãæéã¨åèæ¸ã®ç¸ãå¿ è¦ãªã ãã§ã ã¯ããã« æçã«èªå·±ç´¹ä»ããã¦ããã ãã¾ããããã¾åã¯SEç³»ã®ä¼ç¤¾ã§Django/Angularã¡ã¤ã³ã§ã·ã¹ãã ã¨ã¤ã³ã¿ã¼ãã§ã¼ã¹é¢ä¿ããã£ã¦ã¾ãã ããã°ã©ãã³ã°ãã¯ããã¦2å¹´å¼·ã®ã¢ã©ãã©ã¼ã§ããã¾ã®ä¼ç¤¾ã¯ç¥äººã®ããã§å ¥ãã¾ããããã®é ã¯ãHTMLã¨CSSãããããã¦è§¦ãã¾ããã¬ãã«ã®ã²ã©ããã®ã§ããã ãã¾ãã²ã©ãé¨
JSã®Proxyã使ã£ã¦ã¢ã«ã´ãªãºã ã®å®è¡ä¸ã®åã¹ããããå¯è¦åããä»çµã¿ãä½ãè¨äºã§ãã ï¼inspired by ã¢ã«ã´ãªãºã å³éï¼ åãã«å®æåã®ãã£ããã£ã¨ãã¢ã®ãªã³ã¯ãè²¼ã£ã¦ããã¾ãã DEMO: https://codesandbox.io/s/heuristic-morse-1kc2d?file=/src/index.js â» ã¹ããã ã¨ã·ã³ã¿ãã¯ã¹ãã¤ã©ã¤ãã§ã¨ã©ã¼ãåºã¦ãã®ã§ã³ã¼ãè¨è¼ç¡ãçãç½®ãã¦ããã¾ãã https://codesandbox.io/s/happy-sun-211bq?file=/src/index.js JavaScriptã®Proxyã¨ã¯ Proxy - JavaScript | MDN æåã«JSã®Proxyã¨ã¯ä½ãç°¡åã«èª¬æããã¨ã ç¹å®ã®æä½ã«å¯¾ãããªãã¸ã§ã¯ãã®æ¯ãèããæ¡å¼µ/å¤æ´ã§ãããªãã¸ã§ã¯ãã§ãã æ¡å¼µããããªãã¸ã§ã¯ãï¼ã¿ã¼ã²ã
VueãReactã¨éã£ã¦ä»®æ³DOMããªãããã«ãæã«ãã¥ã¢ãªJavaScriptã«ã³ã³ãã¤ã«ãã¦ãããã³ã³ãã¤ã©ã¼ ãã£ã¨è©³ç´°ãç¥ãããæ¹ã¯ãåã以åæ¸ããè¨äºã§è©³ãã説æãã¦ãã¾ãã®ã§åç §ãã ããã åã¯Vue,Reactã®æ¬¡ã«æ¥ãSvelteãç¥ã£ã¦ãããï¼ Routify Svelteã®ãã¡ã¤ã«ã·ã¹ãã ãã¼ã¹ã®ã«ã¼ãã£ã³ã°ã©ã¤ãã©ãª ãã¡ã¤ã«ãçæããã¨èªåçã«ã«ã¼ãã£ã³ã°ãä½æãã¦ãããããSPAãSSRãPWAãã¡ã¿ã¿ã°çæãã³ã¼ãåå²ãªã©æ¬²ããæ©è½ãè©°ã¾ã£ã¦ããã©ã¤ãã©ãªã«ãªã£ã¦ã¾ãã Staræ°ãå·çæç¹ã§700~800ã»ã©ãªã®ã§éå ¬å¼ã®Svelteã®ã©ã¤ãã©ãªã®ä¸ã§ã¯äººæ°ãªã©ã¤ãã©ãªã¨ãªã£ã¦ãã¾ãã ç´°ããè¨å®ãªã©ãã§ããããã¥ã¡ã³ããå å®ãã¦ããã®ã§è©³ããã¯ä»¥ä¸ãåç §ãã ããã https://routify.dev/ MDsveX Markdownã§Svelteã³ã³ã
ã¯ããã« æ¬è¨äºã§ã¯ãconstãããå¯ä¸ç¥ã§ãããã¨ã証æãããã¨ãletã使ããã¡ãªå ´é¢ã§ããã«ãã¦constã使ãããã¾ã¨ãã¦ããã¾ãããªããES2018ã¾ã§ã®åºæ¬æ§æ(reduce, async/await, é åã¨ãªãã¸ã§ã¯ãã®ã¹ãã¬ããæ§æ)ã使ç¨ãã¾ããããããreduceã¨ãã¹ãã¬ããæ§æã¨ãé£ããããlet使ãããã¨ããæ¹ã®ããã«ã便å©ã¡ã½ããè©°ãåããã§ããLodashã使ã£ãä¾ããç´¹ä»ãã¾ãããã¡ãããLodashã¯æ©è½ã«å¯¾ãã¦ãµã¤ãºã大ããã©ã¤ãã©ãªã§ãããããããã³ãã¨ã³ãéçºã§ãã³ãã«ãµã¤ãºã軽æ¸ãããã¨ããæ¹ãªã©ã¯Lodashã®ä¾ã¯ç¡è¦ããLodashã使ã£ã¦ããªãæ¹ã®ä¾ããåç §ããã ããã°ã¨æãã¾ãã 追è¨ï¼Lodashã®ä½¿ç¨ã«ã¤ã㦠ãLodashã®ã³ã¼ãã«let使ããã¦ããããã¨ãããææãå¤ãé ããã®ã§è¿½è¨ãããã¾ãã 誤解ãæãã¿ã¤ãã«ã«ãã¦ãã¾ãç³
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}