0
我有兩個控制器,init
:呼叫控制器在JavascriptMVC
jQuery.Controller.extend('App.Controllers.Init', {
onDocument: true
},{
load: function() {
//call App.Controllers.Tabs on $('#tabs')
//it is not that easy as $('#tabs').tabs() -> Throws: Object doesn't support this property or method
}
});
而且tabs
:
jQuery.Controller.extend('App.Controllers.Tabs,...
如何調用標籤中的init?
快速注:使用4個空格爲一個碼塊,和之外的2個尾隨空格的要行中斷:) – 2011-01-07 08:29:45