javascript - how to add array into array's and as its property -


add second , third array main's array properties

http://jsfiddle.net/erj9v/

var main = [{     'id': 1,     //'second':[     //     {'something':'here'},     //{'something':'here 2'}     // ],      /*'thrid' : [     {'something':'here '},     {'something':'here 2'} ] */ }]  var second[{     'something': 'here' }, {     'something': 'here 2' }]  var thrid[{     'something': 'here ' }, {     'something': 'here 2' }] 

one more question, i'm building single page application, should @ or front end better?

just add them -

var second = [{     'something': 'here' }, {     'something': 'here 2' }]  main['second'] = second; 

for more help-

how push associative item array in javascript?


Comments

Popular posts from this blog

How to access named pipes using JavaScript in Firefox add-on? -

multithreading - OPAL (Open Phone Abstraction Library) Transport not terminated when reattaching thread? -

node.js - req param returns an empty array -