Add EVENTS Lifecycle
parent
d98dcbeee4
commit
6935851c71
1 changed files with 25 additions and 0 deletions
25
EVENTS-Lifecycle.md
Normal file
25
EVENTS-Lifecycle.md
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
* [`ready`](#usage-ready)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## <a id="usage-ready"></a>.ready
|
||||||
|
|
||||||
|
**Description**
|
||||||
|
Specify a function to execute when the DOM is fully loaded.
|
||||||
|
|
||||||
|
**Parameters**
|
||||||
|
|
||||||
|
* `handler` (Function): A function to execute after the DOM is ready.
|
||||||
|
|
||||||
|
**Returns**
|
||||||
|
|
||||||
|
* (jBase): Current instance.
|
||||||
|
|
||||||
|
**Example**
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
$(document).ready(function() {
|
||||||
|
console.log('DOM is ready!');
|
||||||
|
});
|
||||||
|
|
||||||
|
```
|
||||||
Loading…
Add table
Add a link
Reference in a new issue