define([ 'jquery', 'trunk' ], function($, Trunk) { var Model = Trunk.Model.extend() return Trunk.View.extend({ Model: Model, template: '#template-select', onRequest: function() { this.el.html('加载中') }, onError: function() { this.el.html('服务器错误,请重试') } }) });