如何在JavaScript中将十进制值转换为等效的十六进制值?
Convert a number to a hexadecimal string with:
(使用以下命令将数字转换为十六进制字符串:)
hexString = yourNumber.toString(16);
And reverse the process with:
(并通过以下步骤逆转该过程:)
yourNumber = parseInt(hexString, 16);
2.1m questions
2.1m answers
60 comments
57.0k users