(int).toString(16); // converts int to hex, eg 12 => "C" (int).toString(8); // converts int to octal, eg. 12 => "14" parseInt(string,16) // converts hex to int, eg. "FF" => 255 parseInt(string,8) // converts octal to int, eg. "20" => 16?
详细解决方案
js数值进制变换
热度:357 发布时间:2012-11-01 11:11:32.0
相关解决方案