javascript - js decimal to hexadecimal
淡淡烟草味
淡淡烟草味 2017-05-19 10:23:57
0
1
638

JS decimal to hexadecimal conversion failed, I want to convert the result of sim1 to hexadecimal

淡淡烟草味
淡淡烟草味

reply all (1)
伊谢尔伦

You can use the tostring method of numbers, and the parameter is the base to be converted

var a = 16; a.toString(16)// 结果为'10'
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!