求ASP版的String.fromCharCode函数
求ASP版的String.fromCharCode函数,可以将下面的转换过来,谢谢了。String.fromCharCode(50,48,49,49,45,56,47,4...
求ASP版的String.fromCharCode函数,可以将下面的转换过来,谢谢了。String.fromCharCode(50,48,49,49,45,56,47,48,56,50,50,45,119,48,48,51,46,109,112,51)
展开
1个回答
展开全部
function fromCharCode(codeList)
dim arr,rlt
arr=split(codeList,",")
for each a in arr
rlt=rlt & chr(a)
next
fromCharCode=rlt
end function
response.write fromCharCode("50,48,49,49,45,56,47,48,56,50,50,45,119,48,48,51,46,109,112,51")
'' 注意字编码(unicode/utf-8 | ansi/gb2312)要统一,否则大于255的数结果不一样
dim arr,rlt
arr=split(codeList,",")
for each a in arr
rlt=rlt & chr(a)
next
fromCharCode=rlt
end function
response.write fromCharCode("50,48,49,49,45,56,47,48,56,50,50,45,119,48,48,51,46,109,112,51")
'' 注意字编码(unicode/utf-8 | ansi/gb2312)要统一,否则大于255的数结果不一样
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询