1、$(ele)才是each真正的jquery对象,而不是ele。
$('.mt-story-info').each(function(index,ele){
if($('.mt-story-info').length <= 10){//10是每次加载的条数
Expansion($(ele));
}else{//当条数大于10条
if(index >= t_page*10){//只执行最后10条
Expansion($(ele));
}
}
});

2.jquery对象可以当做参数传递


相关文章:

  • 2021-11-28
  • 2021-11-28
  • 2021-05-22
  • 2021-07-07
猜你喜欢
  • 2022-12-23
  • 2021-11-25
  • 2021-11-28
  • 2021-11-28
  • 2021-11-28
  • 2021-11-28
  • 2021-11-28
相关资源
相似解决方案