API明确说明: onReady( Function fn, Object scope, boolean override ) : void Fires when the document is ready (before onload and before images are loaded). Shorthand of Ext.EventManager.onDocum... Fires when the document is ready (before onload and before images are loaded). Shorthand of Ext.EventManager.onDocumentReady. Parameters: fn : Function The method the event invokes scope : Object An object that becomes the scope of the handler override : boolean If true, the obj passed in becomes the execution scope of the listener Returns:void 一般onReady都是给一个ExtJS Application的入口...就相当于C或Java的main函数.一般要求把创建ExtJs的组件放在onReady的方法里.如: Ext.onReady(function(){ var view = new Ext.Viewport(.....); })
extjs中的OnReady
最新推荐文章于 2021-10-25 10:50:47 发布