标签: javascript type-conversion
我们说我有这样的字符串:"0x8d12a197cb00d4747a1fe03395095ce2a5cc6819"。我想将其转换为类似0x8d12a197cb00d4747a1fe03395095ce2a5cc6819的数字。
"0x8d12a197cb00d4747a1fe03395095ce2a5cc6819"
0x8d12a197cb00d4747a1fe03395095ce2a5cc6819
> typeof "0x8d12a197cb00d4747a1fe03395095ce2a5cc6819" "string" > typeof 0x8d12a197cb00d4747a1fe03395095ce2a5cc6819 "number"