本文主要为大家带来一篇jQuery之动画ajax事件(实例讲解)。小编觉得挺不错的,现在就分享给大家,也给大家做个参考。一起跟随小编过来看看吧,希望能帮助到大家。
废话不多说,直接上代码
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | <!DOCTYPE html>
<html lang= "en" >
<head>
<meta charset= "UTF-8" >
<title>Document</title>
</head>
<body>
<script>
$.ajax({
url:'json/test.txt?_='+Math.random(),
type: "get" ,
dataType:'json',
success: function (data){
}
})
var $box = $( "#box" )
$box .on('click', function (){
console.log(1)
})
$box .on('click', function (){
console.log(2)
})
$box .on('mouseout', function (){
console.log(3)
})
$('p').each( function (index,value){
})
$.each([12,23,34], function (index,value){
})
</script>
</body>
</html>
|
登录后复制
相关推荐:
jquery中的ajax事件和get、post请求说明
解析ajax事件的调用顺序_PHP教程
解析ajax事件的调用顺序
以上是jQuery之动画ajax事件的详细内容。更多信息请关注PHP中文网其他相关文章!