HotCRC内的QPCodeToHex()源码
菜农电子淘宝:https://hotcomlock.taobao.com/ 准备出书:http://hotcomlock.com/hotcomlock.htmlfunction QPCodeToHex(hexstring) {
var i, value, str, hexstr;
hexstr = "";
for (i = 0; i < hexstring.length; i += 2)
{
value = hextoint(hexstring.substr(i, 2));
if ((value >= 33 && value <= 60) || (value >= 62 && value <= 126)) {
str = String.fromCharCode(value);
}
else {
str = "=" + hexstring.substr(i, 2);
}
hexstr += str;
}
hexstr= AsciiToHex(hexstr);
return hexstr;
}
https://bbs.21ic.com/data/attachment/forum/202309/22/101124qp474qggq7ix7pjx.jpg.thumb.jpg
页:
[1]