backbone.js – Backbone Marionette Layout的UI哈希问题
或者UI哈希不适用于布局中的区域?解决方法这应该按照您期望的方式工作.Marionette源中的代码在这里:https://github.com/marionettejs/backbone.marionette/blob/master/src/marionette.itemview.js#L49-L51对bindUIElements()的调用将ui散列转换为jQuery选择器对象,并在调用onRender方法之前调用它.你看到错误吗?或者选择器什么都不返回,对元素没有影响?我没有足够关注你的代码.你是正确