首页 > 代码库 > jQuery next判定最后一个元素

jQuery next判定最后一个元素

if($el.next().length === 0){
    //结束的代码

}