开发者

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

开发者 https://www.devze.com 2022-12-15 11:44 出处:网络
How do I get this expression Chr$(&H8) in Javascript. I need to get this escape code 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

精彩评论

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