code: function hasAncestor(nodes, judge) {
                  for (var i = nodes.length - 1; i >= 0; --i) {
                      if (nodes[i].isAncestorOf(judge)) return true;
                  }
                  return false;
              }
docs: 判断 nodes 列表中是否存在 judge 的祖先