definition: after loading the ExtJS library, start loading the function specified in Onready
parameter: Onready (FN, scope, options)
- The FN callback function represents the function to be executed
- Scope represents the scope of a function
- Some of the other features that are performed by the function, such as how many milliseconds to defer execution, and so on, require only the first parameter in most cases.
Case study One: the role of the loading method
a.function A () { alert ("Every thing is ok!" )}ext.onready (a); B.ext.onready (function () { alert ("Every thing is ok!" );});
Results Print MsgBox Box:every thing is ok!
Case Study II: Parameter Interpretation
<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>