<html>
<head>
</head>
<body ><script>
var newchar='a'.charCodeAt(0);
newchar+=1;
alert(String.fromCharCode(newchar));
</script>
多谢!
---------------------------------------------------------------
c=String.fromCharCode(65)
---------------------------------------------------------------
str.charCodeAt(x),表示将字符串str中的第x个字符转变成ASCII值
求ASCII转字符:javascript用String.fromCharCode(x);vbscript用chr(x)或chrw(x)
求字符转ASCII:javascript用??;vbscript用asc('字符')
</body>
</html>
<head>
</head>
<body ><script>
var newchar='a'.charCodeAt(0);
newchar+=1;
alert(String.fromCharCode(newchar));
</script>
多谢!
---------------------------------------------------------------
c=String.fromCharCode(65)
---------------------------------------------------------------
str.charCodeAt(x),表示将字符串str中的第x个字符转变成ASCII值
求ASCII转字符:javascript用String.fromCharCode(x);vbscript用chr(x)或chrw(x)
求字符转ASCII:javascript用??;vbscript用asc('字符')
</body>
</html>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货