📜  js'中的数组长度 - Javascript代码示例

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

代码示例3
var x = [];
  console.log(x.size());
  console.log(x.length);
  console.log(x.size()==x.length);
  x =[1,2,3];
  console.log(x.size());
  console.log(x.length);
  console.log(x.size()==x.length);
//arjun