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("�xh8") + String.fromCharCode("�xh2")
精彩评论