📜  字符串到二进制 javascript 代码示例

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

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