Stepping on the pit: add objects to the js array of the applet

var infos=[]
one_info={
    
    }
for (var i in array) 
	infos = infos.concat(one_info)//返回数组添加后的内容

pit:

for (var i in array) 
	infos = infos.push(one_info)//返回的是长度

But it's fine on the console
insert image description here

Guess you like

Origin blog.csdn.net/weixin_43865875/article/details/123257045