Search Docs
16 进制是一种数制 十六进制常用于表示字节或者二进制数据 处理显示二进制数据时候
function hexToDecimal(hexString) { return parseInt(hexString, 16); } console.log(hexToDecimal('25a'))