2010-11-19 21 views

回答

3

$$('.classname')[0].readAttribute('href');

注意$$总是会返回一个数组。

0
$$('.className')[0].readAttribute('href') 
0

$$('。classname')。pluck('href');

这将返回一个值为href的数组,以防万一需要多个值。