Dynamic creation of multilevel Javascript object for jQuery-jTable
问题 jTable (jTable.org) layout is defined by the code below. I want to build it dynamically (based on AJAX return from a database query). { title: 'My Dynamic Title', fields: { id: { title: 'ID' }, salesperson: { title: 'Salesperson' }, pivot1: { title: '2012-01' }, pivot2: { title: '2012-02' }, pivot3: { title: '2012-03' } } } The data being displayed is a pivot table and so the number of columns and their titles will change. Is it possible for me to dynamically modify the fields section above?