backbone-stickit

backbone.stickit and html-form: How to save (patch) only changed attributes?

烈酒焚心 提交于 2019-12-13 04:06:20
问题 tl;dr How to use backbone.stickit with a html form to change an existing model fetched from the server and only PATCH the changed attributes (changed by user input within the html form) to the server? /tl;dr I'm using backbone.stickit in a backbone.js application to bind a model to a HTML-form which is part of a backbone view. This works fine so far, but it becomes a little bit complicated if I'm going to save the bound model. This is because I want to use the PATCH-method and only send the