为 Elements 增加过滤功能
MIT-style license.
Element. Filters.js | 为 Elements 增加过滤功能 |
Elements | 可以由 $$ 方法来获取的一个元素集合 |
属性 | |
filterByTag | 根据元素标签名来过滤 |
filterByClass | 根据元素的class属性来过滤 |
filterById | 根据元素的id来过滤 |
filterByAttribute | 根据元素的指定属性来过滤 |
可以由 $$ 方法来获取的一个元素集合
Properties | |
filterByTag | 根据元素标签名来过滤 |
filterByClass | 根据元素的class属性来过滤 |
filterById | 根据元素的id来过滤 |
filterByAttribute | 根据元素的指定属性来过滤 |
根据元素标签名来过滤。返回一个经过过滤后的元素集合。
根据元素的class属性来过滤。 返回一个经过过滤后的元素集合。
根据元素的id来过滤。 返回一个经过过滤后的元素集合。
根据元素的指定属性来过滤。返回一个经过过滤后的元素集合。
name | 属性名 |
operator | 可选,如'=', '>', '<'等 |
value | 可选, 属性值, 只有在指定了operator时才有效 |
Documentation by Aaron Newton & Mootools Developers, generated by NaturalDocs and tidy, and GeSHi
文档中文翻译:zarknight 勘误Email:zarknight@gmail.com asp之家