ï¼å·çä¸ï¼
ï¼æç« ã®ç·´ç¿ãå
¼ãã¦ãã ãã ã¨å·çä¸ãç¾æç¹ã§èªãã§ãæ¥æ¬èªã«ãªã£ã¦ãªãã¨æãã¾ããï¼
ï¼å·çéä¸ã ãã©ããããããããï¼ã¨ããã¢ããã¤ã¹ãããã°æãã¦ãã ããï¼ï¼èªè
ã¿ããªãç·¨éè
ï¼ã¨ãè¨ã£ã¦ã¿ãï¼
ï¼ããã¯ã¦ãªè¨æ³ã®ããããéã£ã¦ããã¦ãããã§ã^^ï¼
ï¼ã¡ãã£ã¨ã Shibuya.JS in Kyoto â PHP ã«ã³ãã¡ã¬ã³ã¹ãããã®ã§ã次ã®æ´æ°ã¯ãã以éã«ãªãããï¼
èªåã®ç¥ãåãã«ãã¾ã£ããã®ããã°ã©ãã³ã°æªçµé¨ã ãã©ãèªåã®ã¦ã§ããµã¤ããä½ã£ã¦ã¿ããï¼ãã¨ãã人ãããã®ã§ãããã°ã©ãã³ã°ãå§ããåã«å¿ è¦ãªç¥èãå¿æ§ããæºåãªã©ãæ¸ãã¦ãããã¨æãã¾ãããã¡ãããæåã«ä½¿ãè¨èªã¯ JavaScript ã§ãã
ãã®æç« ã¯ãããã°ã©ãã³ã°ã¾ã£ããã®æªçµé¨è ãèªãã§åããæç« ãç®æãã¦ãã¾ãããããåãããªãé¨åãããå ´åã¯ææãã¦ãã ãããèãã¦ãã ãããèªåã§èª¿ã¹ãå¿ è¦ã¯ããã¾ããã
ã¯ããã«
ãã®æç« ã¯ãä»ããããã°ã©ãã³ã°ãåãã¦ã¿ããã¨æã£ã¦ããããªãã®ããã«æ¸ããã¦ãã¾ãããããããªããããã°ã©ãã³ã°ãåãã¦ã¿ããã¨æã£ã¦ãããããã®æç« ãèªãã§ããã°ã©ãã³ã°ãå§ãã¦ã¿ã¾ãããï¼ãã®æç« ã¯ããã£ã¨ããªãã®äººçãå°ãã ãå¤ãããã£ããã«ãªãã¨æãã¾ãã
ã¾ããå°ãã¤ã¡ã¼ã¸ãè¨ãã¾ããããã«ããããã°ã©ãã³ã°ãåºæ¥ãã¨ã©ããªãã¨ãå¯è½ã«ãªãã®ãããæ¸ãã¦ã¿ããã¨æãã¾ãã
ããã°ã©ãã³ã°ãåºæ¥ãããã«ãªãã¨ããã½ã³ã³ãä»ä»¥ä¸ã«ä½¿ãããªããã¨ãåºæ¥ãããã«ãªãã¾ãããããããã¼ã ãã¼ã¸ã便å©ãªãµã¤ããä½ããã¨ãåºæ¥ãããã«ãªãã¾ããããã½ã³ã³ã§ãããªãã¨åºæ¥ãã便å©ã ãªãã¨æããã¨ãèªåä¸äººã§å®ç¾åºæ¥ãããã«ãªãã¾ãã
ãããã¨æãã¾ãããï¼ãããããã¦ãã¾ãããï¼
ããã°ã©ãã³ã°ããã¦ä½ããä½ãã¨ãããã¨ã¯ã¨ã£ã¦ã楽ãããã¨ãªã®ã§ãã
ãã ãããã°ã©ãã³ã°ã®ç¿å¾ã¯ãè¶
ç°¡åããªãã¨ã§ã¯ãªãããããã¾ãããããããè¦ããã¹ããã¨ãè¦ãã¦ããã°ç¢ºå®ã«ç¿å¾ãããã¨ãã§ãã¾ãã諦ããã«é å¼µã£ã¦ã¿ã¦ãã ããããã®æç« ããã®æå©ãã«ãªãã°å¬ããã§ãã
ããã°ã©ãã³ã°ã¨ã¯ä½ã
ããã°ã©ãã³ã°ã£ã¦ã©ããªãã¨ã ã¨æãã¾ããï¼ä¸çªæ³åããããä¾ããããã¨ããã²ã¼ã ãä½ãä½æ¥ãã¯ããã°ã©ãã³ã°ã§ãããããããªã¤ã¡ã¼ã¸ããã¾ãããï¼åããæåã«ãããã°ã©ãã³ã°ã£ã¦ã©ããªãã¨ï¼ãã§æ³åããã®ã¯ãã²ã¼ã ã¨ãã¨ã¯ã»ã«ã¿ãããªã®ãä½ããã¨ï¼ãã§ããã
ããã¦ãã ããããã®ã¤ã¡ã¼ã¸ã¯æ£ããã£ãã¨æãã¾ãã
ä»ã§ã¯ãåã¯ããã°ã©ãã³ã°ã¨ãããã®ããããã風ã«æã£ã¦ãã¾ãã
ãç¶æ ã¨æ©è½ãããããæã£ãã¢ããï¼ä¾ãã°ããã½ã³ã³ï¼ã«ããããã ã£ããï¼ç¶æ ï¼ãããããï¼æ©è½ï¼ãã¨ãããã«ã¼ã«ããæ¸ãã¦ãã£ã¦ã便å©ãªã¢ããï¼ä¾ãã°ãã²ã¼ã ï¼ãä½ãä½æ¥ãããã°ã©ãã³ã°ã§ããã
ä¾ãã°ããã½ã³ã³ã¯
- ç¶æ ã¨ãã¦ããã¦ã¹ã®åããããã¼ãã¼ããæ¼ãããæ¼ãããªãããã½ã³ã³å é¨ã®æè¨ã®æãã¦ããæéãã¨ãã£ãç¶æ
- æ©è½ã¨ãã¦ã¯ãç»é¢ã«ä½ãæ¸ããé³ãé³´ãããã¨ãã£ãæ©è½
ãæã£ã¦ãã¾ã
ããããã綿å¯ã«çµã¿åããã¦ãã«ã¼ã«ããæ¸ãã¦ããã°ãã²ã¼ã ã§ãä½ã§ãä½ãããããªæ°ããã¾ãããï¼ããããããã°ã©ãã³ã°ãªã®ã§ããããã¦ããã®ãã«ã¼ã«ããæ¸ãããã®è¨èããããã°ã©ãã³ã°è¨èªããªã®ã§ãã
ã¡ãã£ã¨è±ç·ï¼ãå®ã¯ãè±åå¿è ãä¸çªé£ããã
å®ã¯ãããã°ã©ãã³ã°èªä½ã¯ãããªã«é£ãããã¨ã§ã¯ããã¾ããããã ãæåã®ä¸æ©ãè±åå¿è ãã¨ã¦ãé£ããã®ã§ãã
åããã®ã¨ãã®è¦å´ãã¯ã£ããã¨è¦ãã¦ãã¾ããã¯ããã¯ãæ¬å½ã«ä½ããå§ãã¦ããã®ãåããã¾ããã§ãããããããå ¥éæ¸ãªã©ãè²·ã£ã¦ãã¿ã¾ããããå ¨ç¶ä¸éãã¾ããã§ããã
ã§ããåããå§ããã¨ãã£ã¨ããéã«ããã°ã©ãã³ã°ã¯ä¸éãã¾ããããã§ã諦ããªããã¨ãèå¿ãªã®ã§ãã
ä½æ ãè±åå¿è ãé£ããã®ã
åãããã°ã©ãã³ã°åå¿è ã ã£ããã®é ããã£ããä½ãé£ããã£ãã®ã§ããããã
ã¾ããå ¥éæ¸ã«æ¸ãã¦ããç¨èªãåããã¾ããã
ããã«ãç¨èªãã¤ã³ã¿ã¼ãããã§æ¤ç´¢ãã¦ã¿ã¦ããããã«æ¸ãã¦ããç¨èªãåããã¾ããï¼ï¼
ã¨ãããããããããªãã¾ã¾å ¥éæ¸ã«æ¸ãã¦ãããµã³ãã«ï¼ããã°ã©ãã³ã°ã®å®ä¾ï¼ãæ¸ãåãã¦é²ãã¦ãããã§ãããå¾®å¦ãªéãã§èªåã®ãã½ã³ã³ã§ã¯åãããå ã«é²ããªããªã£ã¦ãã¾ãã®ã§ããä¸å¿ãåå ã調ã¹ãã®ã§ããæ¸ãã¦ãããã¨ã®æå³ãåããããæ«æãã¦ãã¾ãã®ã§ãã
ããã°ã©ãã³ã°ãå§ããã°ããã®ã¨ãã¯ããã®å ã å·¡ãããã£ããç¶ããæ°ããã¾ãã
ãã®è§£æ±ºç
ãããæçµçã«ã©ããã£ã¦è§£æ±ºãã¦ãã£ããã¨ããã¨ããçããæ¢ãããããã®ãããã¾ããã
ããç¨åº¦åãããªããã¨ã¯ããããã¯ä½ãªã®ããããã®ç¨èªã®æå³ã¯ä½ãªã®ããã¨ããèªåèªèº«ã®åãã«å¯¾ãã¦ã仮説ãç«ã¦ã¦ãèªåã ãã®çããåºãã®ã§ãã
èªåã®ä»®èª¬ã«çç¾ãæããã¨ãã«ã¯ãããä¸åº¦ä»®èª¬ãç«ã¦ç´ãã°ããã®ã§ãã
ããããç¹ããèãã¦ãããã°ã©ãã³ã°æªçµé¨è ãæåã«èªãã¹ãæç« ã¯ããä¸ã¤ã®ãã¼ã¯ã¼ãã«å¯¾ãã¦ãéãè¨ãåãã§çç¾ã®ãªã解説ãä½åº¦ãä½åº¦ãæ¸ããã¦ããæç« ãã ã¨æãã¾ãã
ãã¨ããµã³ãã«ãåããã¨ã¯ã¨ã¦ãéè¦ã§ãããµã³ãã«ãç¹å®ã®ç°å¢ã§åããªãå ´åã¯ãåºæ¥ãéãã®è§£èª¬ãå¿ è¦ã§ãã
ãã®æç« ã¯ãããããæç« ã«ãªãããã«åªåãã¦æ¸ãé²ãã¦ããäºå®ã§ãã
ç¨èªè§£èª¬ãµã¤ã
ä¸å¿ãã³ã³ãã¥ã¼ã¿ç¨èªè§£èª¬ãããã°ã©ãã³ã°ç¨èªè§£èª¬ãµã¤ããè¼ãã¦ããã¾ããèªåã®ä»®èª¬ã¨æ¯è¼ãã¦ã¿ãã®ãããã¨æãã¾ãã
ããã°ã©ãã³ã°è¨èªã®é¸æè¢
ããã°ã©ãã³ã°è¨èªã«ã¯ãæ§ã
ãªç¨®é¡ãããã¾ããã¡ããã©ãã人ãæ®æ®µä½¿ãè¨èªï¼èªç¶è¨èªï¼ãã«ãæ¥æ¬èªãããè±èªãããããããªæãã§ããã
ãã©ãããè¨æ³ã§æ¸ãããå¹çãããã®ããããã®è©¦è¡é¯èª¤ã«ãããããã°ã©ãã³ã°è¨èªãæ¥ã
é²åãã¦ãã¾ãããã®ä¸ã§ãæ°ããè¨èªãã©ãã©ãçã¾ãã¦ããã®ã§ããããã¦ãããã°ã©ãã³ã°è¨èªã«ã¯ããããããã®ãä½ãã«ã¯ãã®è¨èªãããããã¨è¨ã£ãåãä¸åããããã¾ãã
ãã®æç« ã§ã¯ JavaScript ã¨ããããã°ã©ãã³ã°è¨èªã使ã£ã¦ããã°ã©ãã³ã°è¨èªã解説ãã¾ãã
ã¡ãã£ã¨è±ç·ï¼ãè¤æ°ã®ããã°ã©ãã³ã°è¨èªãåºæ¥ãã»ããããã
ãããã°ã©ãã³ã°è¨èªã¯å®æãã¨è¨ãããããããä¸ã¤ã®ããã°ã©ãã³ã°è¨èªã«æããæã¤äººãå¤ãã§ãããããåå ã§ã±ã³ã«ããã¦ãã人ãè¯ãè¦ããã¾ããããã¯ããã§æ¥½ããã§ããããã ãé£ããå«ãã¯è¯ããªãã§ãã
ãªã®ã§ãä¸ã¤ã®ããã°ã©ãã³ã°è¨èªãåºæ¥ãããã«ãªã£ãããããä¸ã¤ãããå¥ã®ããã°ã©ãã³ã°è¨èªãåå¼·ãã¦ã¿ã¦ãã ãããããã°ã©ãã³ã°è¨èªã«ã¯ããã®ããã°ã©ãã³ã°è¨èªãä½ã£ã人ã®ä¾¡å¤è¦³ãå縮ããã¦ãã¾ããè¤æ°ã®äººã®ä¾¡å¤è¦³ã«è§¦ãã¦ã¿ã¦å§ãã¦èªåã®ä¾¡å¤è¦³ãçã¾ããã®ã ã¨æãã¾ããä¸ã¤ã®ããã°ã©ãã³ã°è¨èªããçµé¨ããªãã¨å²ã¨ä¸ã¤ã®ä¾¡å¤è¦³ï¼åè¦ï¼ã«æã¾ããã¡ã§ãã
åèªèº«ãã C â Java â JavaScript â Perl ã¨ä½¿ã£ã¦ãã¾ãããããã®éç¨ã§å°ããã¤èªåã®ä¾¡å¤è¦³ã¨ãããã®ãç¯ããã¦ãã£ãã¨æãã¾ããããã¦ãè¤æ°ã®ããã°ã©ãã³ã°è¨èªããã£ã¦ããããããããã確信ãæã£ã¦èªåã好ã㪠JavaScript ã®ç´ æ´ããããèªããã¨ãã§ããã®ã§ãã
JavaScript ã¨ã¯ã©ããªããã°ã©ãã³ã°è¨èªãªã®ã
JavaScript ã¨ã¯ã誤解ãæããã«è¨ã£ã¦ãã¾ãã¨ãã¦ã§ããã¼ã¸ï¼ãã¼ã ãã¼ã¸ãã¦ã§ããµã¤ãï¼ã«åããä»ãå ãããããã«ãã使ãããè¨èªã§ãã
ãã ãããã㯠JavaScript ã®ä¸é¨ã®ä½¿ããæ¹ã«éãã¾ããããã¡ãããæ®éã®ãã½ã³ã³ã®ã½ããã¦ã§ã¢ãä½ããã¨ãã§ãã¾ããã¾ãã JavaScript ã¯ææ³ã«çãç¡ããè¦ãããã¨ãé常ã«å°ãªãã JavaScript ããã£ã¦ããã°ä»ã®ããã°ã©ãã³ã°è¨èªã«ãããã«å¯¾å¿åºæ¥ãããã«ãªãã¨ããç¹å¾´ãããã¾ãããªã®ã§ãåå¿è
ã«ã¯é常ã«ããããã®ããã°ã©ãã³ã°è¨èªã§ãã
ããã°ã©ãã³ã°ãå§ãã¦ã¿ã¾ãããï¼
ããã¾ã§èªåãªãã«ç解ã§ãã¾ãããï¼ããã§ã¯ããã£ããããã°ã©ãã³ã°ãå§ãã¦ã¿ã¾ãããï¼
JavaScript ã§ããã°ã©ãã³ã°ãå§ããã«ã¯ããã¦ã§ããã©ã¦ã¶ãã¨ãããã¹ãã¨ãã£ã¿ãã¨ããã½ããã¦ã§ã¢ã使ãã¾ããå®ã¯ããããã®ã½ããã¦ã§ã¢ã¯ Windows ã Mac ãªã©ã®ä¸è¬ç㪠OS ã«ã¯æåãã両æ¹ã¨ãå
¥ã£ã¦ãã¾ãã
ããã¹ãã¨ãã£ã¿ãèµ·åãã
Windows ã«ã¯ããã¡ã¢å¸³ãã¨ããããã¹ãã¨ãã£ã¿ãå
¥ã£ã¦ãã¾ãã
èµ·åæ¹æ³ããã«ã¯ããã¹ã¿ã¼ãã¡ãã¥ã¼ãâããã¹ã¦ã®ããã°ã©ã ãâãã¢ã¯ã»ãµãªãâãã¡ã¢å¸³ããé¸æãã¾ãã
TODO:ç»å:ã¹ã¿ã¼ãã¡ãã¥ã¼ããã¡ã¢å¸³
ã¯ããèµ·åãã¾ããã
TODO:ç»å:ã¡ã¢å¸³ã®ã¦ã£ã³ãã¦
Mac ã®å ´åã¯ããããã¹ãã¨ãã£ãããã¨ããããã¹ãã¨ãã£ã¿ãå
¥ã£ã¦ãã¾ãã
èµ·åããã«ã¯ã Finder ã®ã移åãã¡ãã¥ã¼ãããã¢ããªã±ã¼ã·ã§ã³ããé¸æãã
TODO:ç»å:Finder ã®ã¡ãã¥ã¼
åºã¦ããã¦ã£ã³ãã¦ã®ä¸ãããããã¹ãã¨ãã£ãããã®ã¢ã¤ã³ã³ãã¯ãªãã¯ãã¾ãã
TODO:ç»å:Finder ã®ã¦ã£ã³ãã¦
ã¯ããèµ·åãã¾ããã
TODO:ç»å:ããã¹ãã¨ãã£ããã®ã¦ã£ã³ãã¦
JavaScript ãæ¸ãã¦ã¿ã
ãããã¹ãã¨ãã£ã¿ããèµ·åããããMac ã®å ´åã¯ãã¾ãããã©ã¼ããããã¡ãã¥ã¼ãããæ¨æºçããã¹ãã«ããããé¸æãã¾ããï¼Windows ã®å ´åã¯ä½ãããªãã¦ããã§ãï¼
ããã¦ãçã£ç½ãªã¨ããã«ãã¼ãã¼ãã§ä»¥ä¸ã®ããã«è¨è¿°ãã¦ãã ãããï¼åè§ï¼å
¨è§ã«æ³¨æãã¦ãã ããï¼
<script> var name = prompt("What is your name"); alert("Hi" + name); </script>
ãã® &tl;script> ã </script> ã«å²ã¾ããé¨åã JavaScript ã§ãï¼
TODO:ç»å:å®éã« JavaScript ãè¨è¿°ãããã¦ã£ã³ãã¦
ããã¹ããã¡ã¤ã«ã®èª¬æ
ãã¡ã¤ã«ãä¿åãã
JavaScript ããæ¸ããããã¡ã¤ã«ããã¹ã¯ãããã«ã000.html ãã¨ããååã§ä¿åãã¾ãã
Windows ã®å ´åãããã¡ã¤ã«ãã¡ãã¥ã¼ã®ãååãä»ãã¦ä¿åããé¸æãã¾ãã
TODO:ç»å
ãã¡ã¤ã«åã«ãã000.htmlãã¨å
¥åãã¦ããã¡ã¤ã«ã®å ´æããããã¹ã¯ãããããé¸æãã¾ãã
TODO:ç»å
ãã¹ã¯ãããã« 000 ã¨ãããã¡ã¤ã«ãåºæ¥ã¦ãã¾ããï¼
TODO:ç»å
Mac ã®å ´åãããã¡ã¤ã«ãã¡ãã¥ã¼ã®ãä¿åããé¸æãã¾ãã
TODO:ç»å
ååã«ãã000.htmlãã¨å
¥åãã¦ããã¡ã¤ã«ã®å ´æããããã¹ã¯ãããããé¸æãã¾ãã
TODO:ç»å
ãã¹ã¯ãããã« 000 ã¨ãããã¡ã¤ã«ãåºæ¥ã¦ãã¾ããï¼
TODO:ç»å
ãã¡ã¤ã«åã¨æ¡å¼µåã®èª¬æ
ã¦ã§ããã©ã¦ã¶ãèµ·åãã
ã¦ã§ããã©ã¦ã¶ã¨ã¯ããã¤ã³ã¿ã¼ããããè¦ãããã®ãã®ãã§ãããã®æç« ã表示ãã¦ããã½ããã¦ã§ã¢ã®ãã¨ã§ããã
Windows ã§ã¯ Internet Explorer ã Mac ã§ã¯ Safari ã¨ããã¦ã§ããã©ã¦ã¶ãæåãã使ãã¾ãã
TODO:ç»å:ã¦ã§ããã©ã¦ã¶ IE 㨠Safari
ãã±ã¼ã·ã§ã³ãã¼ï¼TODO:ç»åã«ãã±ã¼ã·ã§ã³ãã¼ã®ä½ç½®ãæè¨ï¼ã« URL ï¼ã¦ã§ããã¼ã¸ã®ã¢ãã¬ã¹ï¼ãå
¥åãã Enter ãã¼ãæ¼ãã¨ã¦ã§ããµã¤ããè¦ããã¨ãåºæ¥ã¾ãã
TODO:ç»å:ãã±ã¼ã·ã§ã³ãã¼ã®ã¢ãã
JavaScript ãæ¸ããããã¡ã¤ã«ãã¦ã§ããã©ã¦ã¶ã§éã
ã¦ã§ããã©ã¦ã¶ã®ã¦ã£ã³ãã¦ã«ãã¡ã¤ã«ããã©ãã°ï¼ããããããã¨ãèªåã®ãã½ã³ã³ã®ãã¡ã¤ã«ãéããã¨ãã§ãã¾ãã
ã¨ãããã¨ã§ããã£ãä½ã£ã 000 ã¨ãããã¡ã¤ã«ããã©ãã¯ï¼ãããããã¦ã¿ã¾ãããã
TODO:ç»å:ãã©ãã°ï¼ãããã
ãããããåãã¾ãããï¼
TODO:ç»å:ãã©ãã°ï¼ãããã
ããä¸åº¦ç·¨éï¼ä¸æ¸ãï¼ãããã¨ãã®æ¹æ³
ããã¾ã§ã®ã¾ã¨ã
- æºåãªãã±ã¼çã§ãã¬ããã´ã¼çãªä½ã