Home > Q&A > body text
How to create an array in the form of something like this
objectA{ list:array(10), a:1, b:2 }
ringa_lee2017-05-19 10:48:30
var b = new Array(10) var a = {x:b,y:2,z:3}; console.log(a)
给我你的怀抱2017-05-19 10:48:30
var ObjectA = { list: new Array(10), a:1,b:2 }