javascript Convert string representation of hex value to hex -
in javascript, how convert string representation of hex value it's hex representation ?
what have returning checksum routine string value "fe". need it's hex representation "\xfe"
i cannot this, gives me error:
var crc = "fe"; var hex = "\x" + crc;
this gives me new 4 character ascii string:
var crc = "fe"; var hex = "0x" + "fe";
thxs guidance.
like this
var hex = parseint("ff", 16);
javascript string hex
No comments:
Post a Comment