jquery 加载

window.onload = function() {
    // do this stuff when the page is done loading
};

 

 

$(window).load(function() {
    // run this when the whole page has been downloaded
}); 

 

$(document).ready(function() {
    // do this stuff when the HTML is all ready
});   

$(function() {
    // run this when the HTML is done downloading
});

 

 

('< p></p>')
    .html('Hey World!')
    .css('background', 'yellow')
    .appendTo("body");

posted @ 2011-01-10 16:26  CODE  阅读(239)  评论(0编辑  收藏  举报