我想将二进制字符串转换为数字 例如
var binary = "1101000" // code for 104
var digit = binary.toString(10); // Convert String or Digit (But it does not work !)
console.log(digit);
这怎么可能? 谢谢
最佳答案
关于javascript - 如何将二进制字符串转换为十进制?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10258828/