So for example, I have a model with attributes: firstName, lastName, age, skills, race, birthdate, and about 20 more...
I want to get which specific attributes were changed
(if user changes some) and do a .save()
placing the specific attributes that were changed as arguments for .save({...})
Any way I can do this?
note: backbone.js newbie
见细骨干文档, http://documentcloud.github.com/backbone/#Model-change特别hasChanged
和changedAttributes
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.