Jquery .remove()撤消? [英] Jquery .remove() undo?

查看:70
本文介绍了Jquery .remove()撤消?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法实现这个目标?我正在使用一个分页插件,它读取我的ul里面的li的数量,并确定要吐出的编号链接的数量。

Is there any way to achieve this? I am using a pagination plugin that reads the number of li's inside my ul and determines the number of numbered links to spit out.

推荐答案

您可能想要使用.hide()并检查li是否可见。

You probably want to use .hide() and check to see if the li is visible or not.

这可以通过
<$ c $来完成c> $(li:visible)

这篇关于Jquery .remove()撤消?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆