摘要: window.onload = function() { // do this stuff when the page is done loading};$(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 阅读(237) 评论(0) 推荐(0) 编辑
摘要: $(".ajax.load").load("http://www.cnblogs.com/yeer/archive/2009/06/10/1500682.html .post",function (responseText, textStatus, XMLHttpRequest){this;//在这里this指向的是当前的DOM对象,即$(".ajax.load")[0] //alert(responseText);//请求返回的内容//alert(textStatus);//请求状态:success,error//alert(XMLHttpRequest);//XMLHttpRequest对 阅读全文
posted @ 2011-01-10 14:56 CODE 阅读(7448) 评论(0) 推荐(0) 编辑