Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?
ä»æ¥ã¯ãã¯ãã¼ã¸ã£ã®ä½¿ç¨ä¾ãæ¸ãã¾ããæã¯ãã¼ã¸ã£ã«ã¤ãã¦æ¸ãã¾ãããããã¾ãã¡å®éã©ãããå ´é¢ã§ä½¿ãããã®ãã¤ã¡ã¼ã¸ã§ãã¦ã¾ããã§ããã
affiliate.ks-product ã¢ãã£åå ¥æ10ä¸å以ä¸ã®åå¿è ã対象ã«ãã¢ãã£ãªã¨ã¤ããSEOãã»ã¼ã«ã¹ã©ã¤ãã£ã³ã°ããã¼ã±ãã£ã³ã°ãªã©ãããã§å®å®ãã¦ç¨¼ãæ¹æ³ãåãããããã¾ã¨ãã¦ãã¾ãï¼é¢é£æ¸ç±ã®ã¬ãã¥ã¼ãæ¸ãã¦ãã¾ã ã¯ãã¼ã¸ã£ã¼ã£ã¦é£ããï¼ï¼å®ã¯ç°¡åã§ãã ã¯ãã¼ã¸ã£ã¼ã¨ã¯ä½ãï¼ ã¯ãã¼ã¸ã£ã¼ã使ããã¨ã§ä½ãã§ããããã«ãªãã®ãï¼ è©³ãã解説ãã¦ãããµã¤ãã¯æ²¢å±±ãããã©ã詳ãããæ ã«åå¿è ã ã¨ç解ãã«ããã¨æã£ãã®ã§è¨äºã«ãã¾ããã ï¼ã¯ãã¼ã¸ã£ã¼ã§æ¤ç´¢ãã¦ãã人ã«å ¨ãã®åå¿è ã¯ããªãã¨æãã®ã§ããç¨åº¦ç¥èãããåæã§æ¸ãã¾ããã¾ããä»ã®ãµã¤ãã®ã¯ãã¼ã¸ã£ã¼ã®è§£èª¬ãèªãã§ã¿ã¦ãã ãããä¼¼ãæ å ±ã§ãå¤è§çã«æ å ±ãå¾ããã¨ã§ç解ãæ·±ã¾ãã¾ããï¼ ã»ã»ã» é¢æ°å é¨ã®å¤æ°ãæ°¸ç¶çã«ä¿æãããã¨ãã§ãã ããããçãã ï¼é常ãé¢æ°ã¯å¼ã³åºããããã³ã«é¢æ°å é¨ã®å¤æ°ã¯ãª
Javascriptã使ãå§ããã°ããã®å¤ªéåã«ãä¸å¸ã®è±åãããããã¹ã¿ã¤ã«ã·ã¼ãç¨ã®ã¹ã¿ã¤ã«åãDOMããã¢ã¯ã»ã¹å¯è½ãªããããã£åã«å¤æ´ããJavascriptã®ã©ã¤ãã©ãªãä½ã£ã¦æ¬²ãããã¨ãã課é¡ãä¸ãããã¾ãããä½ã®ãã¨ãåãããã«ãã«ã³ã¨ãã¦ãã太éåã«ãè±åããã¯ã"font-style" ã"fontStyle"ã«å¤æ´ããé¢æ°ãä½ãã°ããã®ããã¨è¨ãæ®ãã¦ç«ã¡å»ã£ã¦ãã¾ãã¾ãã O'Reillyã®Javascriptæ¬ã¨ãã°ããæ ¼éãã太éåã¯ããã£ã¨ã©ã¤ãã©ãªãå®æããã¾ãã function capitalize(str) { return str.charAt(1).toUpperCase(); } function style2prop(str) { return str.replace(/-[a-z]/g, capitalize); } "font-style"ã
çµè«ãå ã«ã¾ã¨ããã¨ã以ä¸ã®ï¼ã¤ã§ãã 1. ã°ãã¼ãã«å¤æ°ã®å®£è¨ããªãã¹ãæ¸ããããå ´å 2. ã¦ã¼ã¶ãå¼æ°ãä¸ãã¦ã«ã¹ã¿ãã¤ãºå¯è½ãªèªç±åº¦ã®é«ããé¢æ°ããçæãããå ´å 3. ååãå¼ã³åºããã¦å®è¡ãããã¨ãã®æ¼ç®çµæï¼å¤ï¼ãå é¨ã§ä¿åãã¦ã次ã«å¼ã³åºãããã¨ãã«ãååã®çµæï¼å¤ï¼ã«å¯¾ãã¦ãããã«åãå¦çï¼æ¼ç®ï¼ãè¡ãé¢æ°ãçæãããå ´å 以ä¸ããã¯ãã¼ã¸ã£ãã®å®ç¾©ãããé ã®æ´çã¾ã§ãåãããããåèã¦ã§ããµã¤ãã¸ã®ãªã³ã¯ãå¼µãã¤ã¤ãè¦ã¦ããã¾ãã ã å®ç¾© ãã¯ãã¼ã¸ã£ takeharuãã Qiitaè¨äºï¼2013/07/22ï¼ãJavaScriptã§ã¯ãã¼ã¸ã£å ¥éã ãèªåãå²ãã¹ã³ã¼ãã«ããå¤æ°ãåç §ã§ããé¢æ°ã Wikipedia ãã¯ãã¼ã¸ã£ã å¼æ°ä»¥å¤ã®å¤æ°ãå®è¡æã®ç°å¢ã§ã¯ãªããèªèº«ãå®ç¾©ãããç°å¢ï¼éçã¹ã³ã¼ãï¼ã«ããã¦è§£æ±ºãããã¨ãç¹å¾´ã¨ãããé¢æ°ã¨ãããè©ä¾¡ããç°
ã¯ãã¼ã¸ã£ã¨ã¯ ã¯ãã¼ã¸ã£ã¯ãè¨èã§èª¬æããã®ã大å¤é£ããæ¦å¿µã§ãã ããªãã¯ãèªè»¢è»ã®ä¹ãæ¹ããå£ã ãã§èª¬æã§ããã§ããããï¼ ããªãã¯ãèºæ(ããã)ã®å½¢ããè¨èã ãã§èª¬æã§ããã§ããããï¼ ãã°ããã§ããªãã§ãããã ããããèªè»¢è»ã«ä¹ããã¨ã¯ã§ãã¾ãããééã§èºæã®å½¢ãä½ããã¨ã¯ã§ããã§ãããã ãã¯ãã¼ã¸ã£ããããã¨åãã§ãã ã ãããWikipediaã®ãããªè§£èª¬ãè¦ã¦ãè½ã¡è¾¼ã¾ãªãã§ãã ããã ã¯ãã¼ã¸ã£ (ã¯ãã¼ã¸ã£ã¼ãClosure) ã¯ãããã°ã©ãã³ã°è¨èªã«ããã¦å¼æ°ä»¥å¤ã®å¤æ°ãå®è¡æã®ç°å¢ã§ã¯ãªããèªèº«ãå®ç¾©ãããç°å¢ï¼éçã¹ã³ã¼ãï¼ã«ããã¦è§£æ±ºããé¢æ°ã®ãã¨ã§ããã ç解ã§ããªãã§ãããï¼ ç§ãããã§ããã ã¯ãã¼ã¸ã£ãæ¢ã«ç¥ã£ã¦ãã人ã«ããããã®æç« ã¯ç解ã§ããªãã§ãããã ã¯ãã¼ã¸ã£ãä½ãã®ã¯é£ãããªã ãããã説æããã®ã¯é£ããã¦ããä½ãã®ã¯æå¤ã¨ç°¡åãããã
ã¯ãã¼ã¸ã£ã¯ãããã¥ããã ãªãã§ãã¨è¨ãã¨ã以ä¸ã®ï¼ã¤ã§ãã åå å®ç¾©ãããããããªã Wikipediaãããªããã§èª¿ã¹ãã¨ã ã¯ãã¼ã¸ã£ï¼ã¯ãã¼ã¸ã£ã¼ãè±: closureï¼ãé¢æ°éå ã¯ããã°ã©ãã³ã°è¨èªã«ãããé¢æ°ãªãã¸ã§ã¯ãã®ä¸ç¨®ãããã¤ãã®è¨èªã§ã¯ã©ã ãå¼ãç¡åé¢æ°ã§å®ç¾ãã¦ããã é¢æ°éå !! é¢æ°éå ãæå³ä¸æãããããªãããã®åé¢ãæå³åãããªããããã¨ãã¦ãããããªæ°é ããæãããï¼ã¨ã¯ããããããã©ããªååãè¯ããã¨è¨ãã°ããããã¾ããããããã«ä¸è¬çã«ã¯ãã¯ãã¼ã¸ã£ãã§éã£ã¦ãã¾ããããå¥ã«ããã®ã§ãããï¼ é¢æ°ãã¤ãã¦ã£ã¦ãªã«ï¼åãã¦ã¯ãã¼ã¸ã£ãå¦ã¶ãããªåã¯ãããããããç¬ãã¾ããã¡ãªã¿ã«ããã®å ã®**ãé¢æ°ãªãã¸ã§ã¯ãã®ä¸ç¨®ãã¨ããã©ã ãå¼ã**ãªãããç¥ãã¾ããã ãã©ãJavaScriptã®ã¯ãã¼ã¸ã£ã®äºä¾ã¯ãã¨ã¦ãåãããããã é¢æ°ã®ä¸ã«é¢æ°ãããã¾
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}