📜  数字到二进制 javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:25.234000             🧑  作者: Mango

代码示例6
let num = 2020;
let x = +num.toString(2);
console.log(x);