asfman
android developer
posts - 90,  comments - 213,  trackbacks - 0

function reCode(b){
//***Author: Hutia
//last modified by shouhaimu(QQ:30836570)
//速度已提高近50倍
var glbEncode=new Array();
var t=rsB(b);
t=escape(t).replace(/%u/g,"").replace(/(.{2})(.{2})/g,"%$2%$1").replace(/%([A-Z].)%(.{2})/g,"@$1$2");
t=t.split("@");
var i=0,j=t.length,k;
while(++i<j)
{
k=t[i].substring(0,4);
if(!glbEncode[k])glbEncode[k]=escape(rsChar(eval("0x"+k))).substring(1,6);
t[i]=glbEncode[k]+t[i].substring(4);
}
return unescape(t.join("%"));
}

调用得VBS函数

Function rsB(vIn)
rsB = MidB(vIn,1)
End Function

Function rsChar(vIn)
rsChar = Chr(vIn)
End Function

posted on 2006-08-02 15:39 汪杰 阅读(784) 评论(1)  编辑 收藏 引用 所属分类: javascript

FeedBack:
# re: xmlHttp.responseBody的重编码函数
2008-08-09 15:57 | gzaqq
谢谢,收获巨大  回复  更多评论
  
只有注册用户登录后才能发表评论。

<2011年10月>
2526272829301
2345678
9101112131415
16171819202122
23242526272829
303112345

常用链接

留言簿(15)

随笔分类(1)

随笔档案(90)

文章分类(727)

文章档案(712)

相册

收藏夹

http://blog.csdn.net/prodigynonsense

友情链接

最新随笔

搜索

  •  

积分与排名

  • 积分 - 457947
  • 排名 - 6

最新随笔

最新评论

阅读排行榜

评论排行榜