JS 进制转换
//10 转 2 (num).toString(2) //10 转 8 (num).toString(8); //10 转 16 (num).toString(16); //2 转 10 parseInt(num,2); //8 转 10 parseInt(num,8); //16 转 10 parseInt(num,16); //2 转 8 parseInt(num,2).toString(8); //8 转 2 parseInt(num,8).toString(2); //2 转 16 parseInt(num,2).toString(16); //16 转 2 parseInt(num,16).toString(2); //8 转 16 parseInt(num,8).toString(16); //16 转 8 parseInt(num,16).toString(8); //js自带最多能转36(0-9a-z),其他的自己写... (num).toString(36);