我怎麼填充這在我的骨幹鑑於這些響應如何填充骨幹收集
{
"_count":6,
"data":[{
"id":"6",
"continent":"NORTH AMERICA",
"code":"NA",
"sort_order":"6",
"published":"1",
"date_created":"2014-02-02 13:16:54",
"createdbypk":"1",
"date_modified":"2014-02-02 21:17:10",
"modifiedbypk":"1"
},
{
"id":"5",
"continent":"SOUTH AMERICA",
"code":"SA",
"sort_order":"5",
"published":"1",
"date_created":"2014-02-02 13:16:53",
"createdbypk":"1",
"date_modified":"2014-02-02 21:17:00",
"modifiedbypk":"1"
}]
}
什麼我想要的只是「數據」。使用此骨幹代碼
using this "this.model.get('_count')" will return 6 but this one "this.model.get('continent')" will return nothing.
任何幫助,請
你可以發佈你如何設置你的收藏,模型和視圖更多的代碼? – Gohn67
這裏是整體代碼http://stackoverflow.com/questions/21597927/cascading-select-boxes-with-backbone-js?rq=1 – user1852837