Esempio n. 1
0
func MatchTwo(Number []string, this *goquery.Document) *goquery.Selection { //html替换
	var node *goquery.Selection
	var change bool = false

	for _, v := range Number {
		if change {
			node = node.Find(v)
		} else {
			node = this.Find(v)
			change = true
		}
	}
	if node == nil {
		node = this.Unwrap()
	}

	return node
}