侧边栏壁纸
博主头像
落叶人生博主等级

走进秋风,寻找秋天的落叶

  • 累计撰写 130562 篇文章
  • 累计创建 28 个标签
  • 累计收到 9 条评论
标签搜索

目 录CONTENT

文章目录

$.each 延迟实例 + json实例

2024-05-15 星期三 / 0 评论 / 0 点赞 / 83 阅读 / 666 字

//延迟实例 $("#ul").on('bind',function(e){ $('li').each(function(index){ $(this).css('background-c

//延迟实例
$("#ul").on('bind',function(e){
    $('li').each(function(index){
        $(this).css('background-color','orange')
        .dalay(index*200)
        .fadeOut(1500);
    });
    e.preventDefault();
})
//json实例
var json = [
    {'re':'#f00'},
    {'green':'#0f0'}
];
$.each(json,function(){
    $.each(this,function(name,value){
        console.log(name + '=' + value)
    })
})
 

广告 广告

评论区