topElement. Filters.js

Elements 增加过滤功能

License

MIT-style license.

Summary
Element. Filters.js Elements 增加过滤功能
Elements 可以由 $$ 方法来获取的一个元素集合
属性
filterByTag 根据元素标签名来过滤
filterByClass 根据元素的class属性来过滤
filterById 根据元素的id来过滤
filterByAttribute 根据元素的指定属性来过滤

topElements

可以由 $$ 方法来获取的一个元素集合

概要
Properties
filterByTag 根据元素标签名来过滤
filterByClass 根据元素的class属性来过滤
filterById 根据元素的id来过滤
filterByAttribute 根据元素的指定属性来过滤

top属性

topfilterByTag

根据元素标签名来过滤。返回一个经过过滤后的元素集合。

topfilterByClass

根据元素的class属性来过滤。 返回一个经过过滤后的元素集合。

topfilterById

根据元素的id来过滤。  返回一个经过过滤后的元素集合。

topfilterByAttribute

根据元素的指定属性来过滤。返回一个经过过滤后的元素集合。

参数

name 属性名
operator 可选,如'=', '>', '<'等
value 可选, 属性值, 只有在指定了operator时才有效

Documentation by Aaron Newton & Mootools Developers, generated by NaturalDocs and tidy, and GeSHi

文档中文翻译:zarknight 勘误Email:zarknight@gmail.com asp之家