0
Comment obtenir cette expression Chr $ (& H8) dans Javascript. Je dois obtenir ce code d'échappement en Javascript
sCmd = Chr$(&H8) + Chr$(&H2)
Merci beaucoup.
Comment obtenir cette expression Chr $ (& H8) dans Javascript. Je dois obtenir ce code d'échappement en Javascript
sCmd = Chr$(&H8) + Chr$(&H2)
Merci beaucoup.
Essayez String.fromCharCode(), ou vous pouvez utiliser ces séquences d'échappement:
\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")
avec "fromCharCode" fonctionne de cette façon "String.fromCharCode (" 0xdd " "0xD1")", Mais comment pourrais-je exprimer "0x08" "0x01" ou "\ x08" "\ x01"? –
fonctionne parfaitement, merci –