第7åNode.jsã¢ããªã±ã¼ã·ã§ã³ãWindow Azureã§åãã é«æ©ä¿å 2012-11-27
åå㧠JavaScript ã®ã¹ã³ã¼ãã®åºæ¬ãããã£ãã®ã§ãä»åã¯ã¹ã³ã¼ããã§ã¼ã³ã¨ã¯ãã¼ã¸ã£ãåå¼·ãã¦ã¿ã¾ããã Call ãªãã¸ã§ã¯ãã¨ã¯ãã¼ã¸ã£ã®ç解ãããªã大å¤ã§ããã»ã»ã å¤æ°ãªãã¸ã§ã¯ã JavaScript ã§å¤æ°ã®å®£è¨ã¨åç §ãããã¨ãããã¨ã¯ãå¤æ°ãªãã¸ã§ã¯ããèªã¿æ¸ãããã¨ãããã¨ã§ãã å¤æ°ãªãã¸ã§ã¯ãã¨ããã®ã¯ãkey 㨠value ã«ããå¤æ°ç®¡çå°ç¨ã®ããã·ã¥ãã¼ãã«ã®ã㨠key ãå¤æ°åãvalue ãå¤ã®ã»ããã«ãªã£ã¦ãããã¼ãã«ã§ãå¤æ°ã®æ°ã ãã¬ã³ã¼ããã§ããã¤ã¡ã¼ã¸ å¤æ°ãªãã¸ã§ã¯ãã¯ããã°ã©ããæèãããã¨ã®ãªãã便å®çãªãªãã¸ã§ã¯ã ã°ãã¼ãã«ãªãã¸ã§ã¯ã JavaScript ã¯ããã©ã¦ã¶ãæ°ãããã¼ã¸ãèªã¿è¾¼ãã ã¨ããå é¨çã«æ°ããã°ãã¼ãã«ãªãã¸ã§ã¯ããçæãã¦åæåãã¾ãã ã°ãã¼ãã«ãªãã¸ã§ã¯ãã¨ã¯ãã°ãã¼ãã«å¤æ°ãã°ãã¼ãã«é¢æ°ã管çã
ã¹ã³ã¼ãã¨ã¯ãå¤æ°ã®æå¹ç¯å²ã®ãã¨ã§ãããã°ã©ã ã®ã©ã®å ´æããåç §ã§ãããã決ããæ¦å¿µã§ãã ã¹ã³ã¼ãã®ç¨®é¡ JavaScript ã®ã¹ã³ã¼ãã«ã¯ãã°ãã¼ãã«å¤æ°ã¨ãã¼ã«ã«å¤æ°ã® 2 種é¡ããã¾ãã ã°ãã¼ãã«å¤æ° ãã¼ã«ã«å¤æ° é¢æ°ã®å¤ï¼ãããã¬ãã«ï¼ã§å®£è¨ããå¤æ° é¢æ°ã®ä¸ã§å®£è¨ããå¤æ°, é¢æ°ã®ä»®å¼æ° ããã°ã©ã å ¨ä½ããåç §ã§ãã ãã®é¢æ°ã®ä¸ã§ã®ã¿åç §ã§ãã ãããã¯ã¹ã³ã¼ãã¯åå¨ããªã Java ãªã©ã®è¨èªã§ã¯ãif ã for ãªã©ã® {} ã§å²ã¾ãããããã¯ãã¨ã«ããããã¯ã¹ã³ã¼ããããã¾ãããJavaScript ã«ã¯åå¨ãã¾ããã JavaScript ã§ã©ããã¦ããããã¯ã¹ã³ã¼ãã使ãããå ´åã¯ãwith å½ä»¤ã使ãæ¹æ³ããç¡åé¢æ°ãå®ç¾©ã¨åæã«å¼ã³åºããªã©ã®æ¹æ³ã§ãæ¬ä¼¼çã«ãããã¯ã¹ã³ã¼ããä½ããã¨ã¯å¯è½ã§ãã è£è¶³ : let ã使ãã¨ãããã¯ã¹ã³ã¼ããã¤ãããã¨æ
Android ã® WebView ã使ã£ã¦ Javascript é¢æ°ãå¼ã³åºãã«ã¯ WebView#loadUrl ã¡ã½ããã使ãã¾ãããã ããã®æ¹æ³ã ã¨é¢æ°ã®æ»ãå¤ãåå¾ãããã¨ãã§ãã¾ããã ä¸çªç°¡åã§æ軽ãªæ¹æ³ã¨ã㦠Javascript ã® alert é¢æ°ã使ã£ã¦ WebChromeClient ã¯ã©ã¹ã® onJsAlert ã¡ã½ããããæ»ãå¤ãåãåãæ¹æ³ãããã¾ããããã®æ¹æ³ã 㨠alert é¢æ°ã使ããªããªããããã°ããã¨ãã«ã¨ã¦ãä¸ä¾¿ã ã£ãããé¢æ°ã®ç¨®é¡ãå¢ããã¨æ»ãå¤ã®æåå解æãå¿ è¦ã«ãªã£ããã¨ã¤ãã¤ã使ãã¾ããã§ããã javaããjavascriptãå®è¡ããå ´åã®è¿ãå¤ã®åãåã ãã㧠JavascriptInterface ã使ã£ã¦ Javascript é¢æ°ã®æ»ãå¤ãåå¾ããããã°ã©ã ãä½æãã¦ã¿ã¾ããã ä»åä½æããããã°ã©ã ã®ç¹å¾´ã¯ä»¥ä¸ã«ãªãã¾ãã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}