coffeescript中的示例
window.APP = Ember.Application.create()
APP.stuff = Ember.Object.create(
name: "The Name"
)
APP.things = Ember.Object.create(
nameBinding: "APP.stuff.name"
)
APP.gizmos = Ember.Object.create(
nameBinding: "APP.stuff.name"
)
Run Code Online (Sandbox Code Playgroud)
反正有没有检测到APP.stuff有2个绑定到它的名称属性?