chrome下调试xpath
$x("//a") //返回数组
$x('.//img',a[0])
var a=/d+/gi
a.exec(document.body.innerText) //regular expression
document.body.innerText.match(a)