0
在收集我需要的值設置爲屬性之一,但我不能找到辦法如何做到這一點骨幹,改變模型的屬性
products.models[i].set({'category.name':'some_value'})
的REST API看起來像這樣
{
"category": {
"id": 3,
"name": "Drink",
"icon": "staging/main/category/icon-drinks.png"
},
"id": 1,
"name": "Sugar54",
"dashboard": 1,
"last_buy": "2013-10-02",
"price": "102",
"buy_period": 7
},
我該怎麼做?