Translate Into English Coffee & Tea

VBScript 中 Chr(charcode) 函数和 JS 中 String.fromCharCode(charcode) 大家都知道它的意义,用法也很简单。

但其参数 charcode 是怎样的呢?

在 VBScript 中 charcode 的取值范围是 [-32768, 65535],超过这个范围就会出错。

在 JS 中 charcode 的取值范围没有限制,但每隔 65536 就会形成一个循环,也即 String.fromCharCode(n) = String.fromCharCode(n+65536*m)。

相关文章
文章评论
标题:必填
内容:
文章信息