src/lay/modules/layer.js
function(){
      data = [];
      parent.find(options.img).each(function(index){
        var othis = $(this);
        othis.attr('layer-index', index);
        data.push({
          alt: othis.attr('alt'),
          pid: othis.attr('layer-pid'),
          src: othis.attr('layer-src') || othis.attr('src'),
          thumb: othis.attr('src')
        });
      })
    }
function(){
      data = [];
      parent.find(options.img).each(function(index){
        var othis = $(this);
        othis.attr('layer-index', index);
        data.push({
          alt: othis.attr('alt'),
          pid: othis.attr('layer-pid'),
          src: othis.attr('layer-src') || othis.attr('src'),
          thumb: othis.attr('src')
        });
      })
    }
function ( ) { data = [ ] ; parent . find ( options . img ) . each ( function ( index ) { var othis = $ ( this ) ; othis . attr ( 'layer-index' , index ) ; data . push ( { alt : othis . attr ( 'alt' ) , pid : othis . attr ( 'layer-pid' ) , src : othis . attr ( 'layer-src' ) || othis . attr ( 'src' ) , thumb : othis . attr ( 'src' ) } ) ; } ) }
页面直接获取
页面直接获取