2 é²æ°ã 16 é²æ°ã使ãããã¨ããã¨ããJavaScript ã§ã¯çµã¿è¾¼ã¿ã®æ©è½ãå©ç¨ã§ãã¾ãã使ããã®ã¯ 16 é²æ°ã ãã§ã¯ãªãã2 é²æ°ãã 36 é²æ° (0 ï½ 9 ããã³ a ï½ z ã使ç¨) ã¾ã§æ±ãã¾ãã n é²æ°æååããæ°å¤ã¸ã®å¤æ n é²æ°æååããæ°å¤ã¸ã¨å¤æããã¨ãã¯ãparseInt é¢æ°ã使ãã¾ãã第 2 å¼æ°ã«åºæ° n ãæå®ãããã¨ã§ã第 1 å¼æ°ã®æååã n é²æ°ã§ããã¨è§£éãã¦ããã¾ããn 㯠32 ãããæ´æ°ã«å¤æããããã®å¤ã 2 æªæºã¾ã㯠36 ãè¶ ããã¨ã㯠NaN ãè¿ãã¾ãããã ããn ã 0 ã«ãªãã¨ãã¯æååã 10 é²æ°è¡¨è¨ã§ããã¨ãã¦è§£éããã¾ãã parseInt(10, 36); // 36 parseInt("10", 0x100000000 + 36); // 36 åºæ°ãæ示ããã¦ããããæååã 0 ããå§ã¾ã£ã¦ãã
{{#tags}}- {{label}}
{{/tags}}