search

Home  >  Q&A  >  body text

jQuery array creation handling

How to create an array in the form of something like this

objectA{
    list:array(10),
    a:1,
    b:2
}
滿天的星座滿天的星座2744 days ago467

reply all(2)I'll reply

  • ringa_lee

    ringa_lee2017-05-19 10:48:30

    var b = new Array(10)
    var a = {x:b,y:2,z:3};
    console.log(a)

    reply
    0
  • 给我你的怀抱

    给我你的怀抱2017-05-19 10:48:30

    var ObjectA = {
    list: new Array(10),
    a:1,b:2
    }

    reply
    0
  • Cancelreply