摘要:
function unicode(s){
var len=s.length;
var rs="";
for(var i=0;ivar k=s.substring(i,i+1);
rs+=""+s.charCodeAt(i)+";";
}
return rs;
}
function runicode(s){
var k=s.split(";");
var r="";
for(var x=0;xvar m=k[x].replace(//,"");
r += String.fromCharCode(m);
}
return r;
}
阅读全文
posted @ 2007-05-16 14:52 allonkwok 阅读(2119) 评论(0) 推荐(0) 编辑