欢迎光临散文网 会员登陆 & 注册

开课吧 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()

开课吧 JavaEE企业级分布式高级架构师020期的评论 (共 条)

分享到微博请遵守国家法律