Number.prototype.changeTo36=function(){
//进制映射
var arr36=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"];
var _this=this;
var nb='';
while(_this!=0){
nb=arr36[(_this%36)]+nb;
_this=Math.floor(_this/36);
}
switch(nb.length%4){
case 0:return nb;
case 1:return "000"+nb;
case 2:return "00"+nb;
case 3:return "0"+nb;
default:return;
}
return nb;
};
var abc=2000;
alert(abc+"-->"+abc.changeTo36());