zoukankan      html  css  js  c++  java
  • 切换加上延迟加载js代码

    切换加上延迟加载js代码

    (function(){
    
      var tit = $("#tab02 li"),
          con = $("#wrapmp>div"),
          cur = 'cur';
    
          tit.click(function(){
    
              var index = tit.index(this);
    
              $(this).addClass('cur').siblings().removeClass('cur');
    
            
                con.eq(index).show().siblings().hide();
    
                if($(this).attr('c') != '1'){
    
    
                    con.eq(index).find('img').each(function(){
                       
                        $(this).attr('src',$(this).attr('v'));
                        $(this).removeAttr('v');
    
                    });
    
                    $(this).attr('c',1);
                }
    
    
    
          });
    
    
    })();
    
  • 相关阅读:
    rwkj 1337
    poj 1002
    map
    vector
    sort排序
    sort函数
    poj 2945
    poj2388
    rwkj 1422搜索(素数环)
    poj2503
  • 原文地址:https://www.cnblogs.com/xupeiyu/p/3809964.html
Copyright © 2011-2022 走看看