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"ã
{{#tags}}- {{label}}
{{/tags}}