Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有一种很好的方法来绑定和观察嵌套属性(如 state.city)与主干.stickit?
谢谢你的帮助。
我已经使用 Backbone.DeepModel ( https://github.com/kahwee/backbone-deep-model ) 完成了这项工作。它工作得很好。
设置深度模型后,您可以通过以下方式将其嵌套属性与stickit 绑定:
bindings : { "#city" : "state.city" }