Jquery 获取元素数量 length

这个示例会输出 id=”nav” UL 下的 li 元素的数量(length)

提示:你可以先修改部分代码再运行。

Related posts:

  1. JQuery 新闻头条淡入淡出效果
  2. ThickBox – 网页图片弹出展示程序
  3. JavaScript可移动弹出层
  4. CSS模拟html的'title'和'alt'的提示效果
  5. jQuery插件Step Carousel Viewer实现Javascript图片滑动旋转效果
此条目发表在 Jquery, 代码人生, 前端技术 分类目录,贴了 标签。将固定链接加入收藏夹。

发表评论

电子邮件地址不会被公开。 必填项已被标记为 *

*

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word