开发者

How do I get this expression Chr$(&H8) in Javascript

How do I get this expression Chr$(&H8) in Javascript. I need to get this escape code in Javascript

sCmd = Chr$(&H8) + Chr$(开发者_运维问答&H2)

Thanks a lot.


Try String.fromCharCode(), or you can use these escape sequences:

\ddd      Octal sequence (3 digits: ddd)
\xdd      Hexadecimal sequence (2 digits: dd)
\udddd    Unicode sequence (4 hex digits: dddd) 


sCmd = String.fromCharCode("&#0xh8") + String.fromCharCode("&#0xh2")
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜