code: function binaryTransfer(integer, binary) {
  	binary = binary || 62;
  	var stack = [];
  	var num;
  	var result = '';
  	var sign = integer < 0 ? '-' : '';
  	
  	function table (num) {
  		var t = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
  		return t[num];
  	}
  	
  	integer = Math.abs(integer);
  	
  	while (integer >= binary) {
  		num = integer % binary;
  		integer = Math.floor(integer / binary);
  		stack.push(table(num));
  	}
  	
  	if (integer > 0) {
  		stack.push(table(integer));
  	}
  	
  	for (var i = stack.length - 1; i >= 0; i--) {
  		result += stack[i];
  	} 
  	
  	return sign + result;
  }
docs: 10进制转化成62进制以内的进制 convert 10 binary to customized binary, max is 62