Home > Q&A > body text
JS decimal to hexadecimal conversion failed, I want to convert the result of sim1 to hexadecimal
伊谢尔伦2017-05-19 10:25:57
You can use the tostring method of numbers, and the parameter is the base to be converted
var a = 16; a.toString(16)// 结果为'10'