📜  javascript 所有类型的数据 - Javascript 代码示例

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

代码示例1
let a = ["A", 1, true, [], [2, 'x'],{},{a:'B'}, NaN, undefined, null];
let s = a.toString();
console.log(s);//"A,1,true,,2,x,[object Object],[object Object],NaN,, "