📄 README.md

← 返回目录

Slick

Slick is a standalone selector engine that is totally slick. Slick is split in 2 components: the Finder and the Parser. The Finder's job is to find nodes on a webpage, the Parser's job is to create a javascript object representation of any css selector. Slick allows you to: * Create your own custom pseudo-classes * Use the Parser by itself. * Find nodes in XML documents. ---

The Finder

Find nodes in the DOM

search context for selector

Search this context for any nodes that match this selector. Expects: * selector: String or SelectorObject * (optional) context: document or node or array of documents or nodes * (optional) append: Array or Object with a push method Returns: append argument or Array of 0 or more nodes slick.search("#foo > bar.baz") → [, , ] slick.search("li > a", [
    ,