摘要:
实现一个功能需要把一个中文词语编码后拼到百度的URL中,在新窗口打开,实现搜索,需要一个类似与PHP中的URlencode的功能,找了好久都没找到。escape、encodeURI、encodeURIComponent都不行。<script language="vbscript"> Function str2asc(strstr) str2asc = hex(asc(strstr)) End Function Function asc2str(ascasc) asc2str = chr(ascasc) End Function </script>&l 阅读全文
posted @ 2012-04-16 15:35
Rich.T
阅读(2279)
评论(0)
推荐(0)
浙公网安备 33010602011771号