获取元素个数
摘要:
当用children()或nextAll()取得元素集合时,要获得元素数量,应该用size()而不是用length()。如下为示例:1 var chapList = $("#chapter_box").children("div").first().nextAll(".list");2 ... 阅读全文
posted @ 2014-12-01 20:06 帝华 阅读(167) 评论(0) 推荐(0) 编辑
posted @ 2014-12-01 20:06 帝华 阅读(167) 评论(0) 推荐(0) 编辑
posted @ 2014-12-01 20:05 帝华 阅读(450) 评论(0) 推荐(0) 编辑