//十进制转其他

var x=110;

alert(x);

alert(x.toString(8));

alert(x.toString(32));

alert(x.toString(16));

//其他转十进制

var x='110';

alert(parseInt(x,2));

alert(parseInt(x,8));

alert(parseInt(x,16)

results matching ""

    No results matching ""