caoge c760052ff9 机车状态修改 | hai 8 meses | |
---|---|---|
.. | ||
make | hai 8 meses | |
src | hai 8 meses | |
tests | hai 8 meses | |
.npmignore | hai 8 meses | |
LICENSE | hai 8 meses | |
Makefile | hai 8 meses | |
README.md | hai 8 meses | |
component.json | hai 8 meses | |
package.json | hai 8 meses | |
ready.js | hai 8 meses | |
ready.min.js | hai 8 meses |
It's easy. Works like this:
domready(function () {
// dom is loaded!
})
Compatibility with IE6
, IE7
, and IE8
has been fully dropped. If your application requires this level of support, please use the 0.3.0
release.
npm install
make
open tests/test.html
Don't already have Ender? Install it like this:
npm install ender -g
Include domready in your package:
ender add domready
Then use it like this
require('domready')(function () {
$('body').html('<p>boosh</p>')
})
// or
$(document).ready(function () {
$('body').html('<p>boosh</p>')
})