获取对象的长度
obj:{id:1,id2:1,id3:1,id4:1,id5:1,id6:1,id7:1,id8:1,id9:1,id10:1} let i= Object.keys(this.obj).length console.log(i);//10