Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
convert decimal to hexdecimal in js (js进制转换)
var num=12;
//12 -> c
var hex=12.toString(16);//same for other conditions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment