元素路径
元素获取和查询的路径。
例子
var ep = new ElementPath ( )
var element = document . querySelect ( 'a:nth-child(2)' )
var path = ep . get ( element )
console . log ( element === ep . query ( path ) )
// true
var ep = new ElementPath ( {
tags : 'textarea,section,div'
} )
var element = document . querySelect ( 'a:nth-child(2)' )
var path = ep . get ( element )
console . log ( element === ep . query ( pat
1