Rabbit.Selector

The Rabbit.Selector object provides several useful methods that will help you get CSS data from the original website pages.

Rabbit.Selector Methods

Method Description
value() Returns specified value(s) of the specified node found by the selector.
test() Returns TRUE if the specified node is found by the selector and FALSE otherwise.
get() Returns array of nodes found by the selector.
html() Returns HTML code of the node found by the selector as string.
innerHTML() Returns inner HTML code of the node found by the selector as string.

You can use S or $s aliases instead of Rabbit.Selector for shorthand coding. For example, the following three lines of code will do the same:

Rabbit.Selector.value('title')

-OR-

S.get('title')

-OR-

$s('title')

All these three statements will take the value of the TITLE element available on the original desktop page.

参考