标签:style c class blog code java
定义:加载完ExtJs库之后,开始加载OnReady中指定的函数
参数:onReady( fn, scope, options )
事例探究一:加载方法的作用
a. function a(){ alert("every thing is OK!") } Ext.onReady(a); b. Ext.onReady(function(){ alert("every thing is OK!"); });
结果打印MsgBox框:every thing is OK!
事例探究二:参数解释
<script type="text/javascript"> var b1={v:"this id b1"}; var b2={v:"this id b2"}; function b(){ alert(this.v); } Ext.onReady(b,b1,{dealy:"50000000"}); Ext.onReady(b,b2,{dealy:"50000000"}); </script>
extjs笔记(一) ext.onready()用法,布布扣,bubuko.com
标签:style c class blog code java
原文地址:http://www.cnblogs.com/jingdaihuakai/p/3747513.html