JS decimal to hexadecimal conversion failed, I want to convert the result of sim1 to hexadecimal
You can use the tostring method of numbers, and the parameter is the base to be converted
var a = 16; a.toString(16)// 结果为'10'
You can use the tostring method of numbers, and the parameter is the base to be converted