开课吧 JavaEE企业级分布式高级架构师020期
2022-10-30 16:28 作者:janet19961217 | 我要投稿
let controller = {
view = null,
model = null,
...... = null,
init: function(){
this.view = view this.model = model ......
this.bindEvents()
},
bindEvents: function(){
// 绑定事件,与绑定事件无关的放在 controller 属性上
},
......
}
controller.init( controller,model )
//controller.init.call( controller,view, model )}.call()