在js中创建数组,数组中每一个元素是一个对象,实现:
var imageList = new Array();
lis.each(function () {
var ob = new Object();
ob.Id = (this).attr("index");
imageList.push(ob);
});
在js中创建数组,数组中每一个元素是一个对象,实现:
var imageList = new Array();
lis.each(function () {
var ob = new Object();
ob.Id = (this).attr("index");
imageList.push(ob);
});
本文标题:使用js传递数组对象
本文链接:https://www.haomeiwen.com/subject/jomqpftx.html
网友评论