Populating data from JSON for drop downs
问题 I am receiving JSON from the server which looks like { "accountType": ["Full","Trial"], "states": [ {"state":"AL","stateDescription":"Alabama","featured":"A1"}, {"state":"AK","stateDescription":"Alaska","featured":"B1"} ], "dates":[ {"dateDescription":"Jan","month":1,"year":2008}, {"dateDescription":"Feb","month":2,"year":2008} ] } In the Backbone file I'm doing: define([ 'backbone', 'underscore', 'vent', ], function (Backbone, _, vent) { 'use strict'; return Backbone.Model.extend({ url: {},