test

var _$ = ["", 
"\x3b\x20\x73\x65\x63\x75\x72\x65", 
"\x28\x3f\x3a\x5e\x7c\x3b\x20\x29", 
"\x68\x64\x4d\x73\x67", 
"\x6d\x69\x33\x62\x74\x6e", 
"\x73\x63\x72\x69\x70\x74"];
function fillblank(index){
    var rv=""
	var temp=index.toString()
   switch(temp.length)
	{
	case 1:
	  rv="000"+temp;
	  break;
	case 2:
	  rv="00"+temp;
	  break;
	case 3:
	  rv="0"+temp;
	  break;
	case 4:
	  rv=""+temp;
	  break;
	default:
	} 
   return rv;
}
var a=0;
for(var x in _$){
   console.log(fillblank(a)+":|"+_$[x]);
   a++;
}

你可能感兴趣的:(test)