As3之ASCII码与字符串互转

输入ASCII码构造字符串函数fromCharCode
格式:String.fromCharCode(“your string”);

读取单字符的ASCII码 charCodeAt
格式:字符串变量.charCodeAt(字符位置);

发表评论?

0 条评论。

发表评论


注意 - 你可以用以下 HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>