jquery官网中文(jquery英文)
jQuery各版本地址
无意中看到一句话叫做:好记性不如烂笔头。
小时候的一句话,现在可以改成好记性不如烂键盘??。
jquery-2.1.1
注:jquery-2.0以上版本不再支持IE 6/7/8)百度引用地址 (推荐目前最稳定的,不会出现延时打不开情况)。
百度压缩版引用地址:
script src=””/script
微软压缩版引用地址:
script src=””/script
官网jquery压缩版引用地址:
script src=””/script
jquery-2.0.0
百度压缩版引用地址:
script src=””/script
微软压缩版引用地址:
script src=””/script
官网jquery压缩版引用地址:
script src=””/script
jquery-1.11.1
百度压缩版引用地址:
script src=””/script
微软压缩版引用地址:
script src=””/script
官网jquery压缩版引用地址:
script src=””/script
jquery-1.10.2
百度压缩版引用地址:
script src=””/script
微软压缩版引用地址:
script src=””/script
官网jquery压缩版引用地址:
script src=””/script
jquery-1.9.1
百度压缩版引用地址:
script src=””/script
微软压缩版引用地址:
script src=””/script
官网jquery压缩版引用地址:
script src=””/script
jquery-1.8.3
百度压缩版引用地址:
script src=””/script
微软压缩版引用地址:
script src=””/script
官网jquery压缩版引用地址:
script src=””/script
jquery-1.7.2
百度压缩版引用地址:
script src=””/script
微软压缩版引用地址:
script src=””/script
官网jquery压缩版引用地址:
script src=””/script
jquery-1.6.4
百度压缩版引用地址:
script src=””/script
微软压缩版引用地址:
script src=””/script
官网jquery压缩版引用地址:
script src=””/script
JQUERY如何获得某元素父级的父级?
jquery中parent()可以获取父级元素,所以获得某元素父级的父级可以使用
$(selector).parent().parent();
示例如下
创建Html代码及css样式
div?class="class1"
class1
div?class="class2"
class2
div?class="class3"
class3
/div
/div
/div
div{padding:10px?20px;border:4px?solid?#ebcbbe;}
div.class1{width:200px;height:120px;}
编写jquery代码
$(function(){
$("div.class3").click(function()?{
obj?=?$(this).parent().parent();
alert(obj.prop('class'));
});
})
查看效果

jQuery怎么加载一个html页面到我指定的div里面
使用ajax。
参考代码:
$(function(){
$.ajax({
type:"POST",??????url:"LoginLoadArticle.ashx", ? ?
data: "type="+escape("最新公告") ,
success:function(msg){
$(".gonggao").html(msg);
??????},??????error:function(XMLHttpRequest, textStatus, thrownError){}
})
})
扩展资料:
xml:返回XML文档,可用JQuery处理。?
html:返回纯文本HTML信息;包含的script标签会在插入DOM时执行。?
script:返回纯文本JavaScript代码。不会自动缓存结果。除非设置了cache参数。注意在远程请求时(不在同一个域下),所有post请求都将转为get请求。?
json:返回JSON数据。?
jsonp:JSONP格式。使用SONP形式调用函数时,例如myurl?callback=?,JQuery将自动替换后一个“?”为正确的函数名,以执行回调函数。?
text:返回纯文本字符串。?
beforeSend:要求为Function类型的参数,发送请求前可以修改XMLHttpRequest对象的函数。