tinymce-dom-TreeWalker

发布于 2019-05-06 字数1538 浏览 693 评论 0

Examples

var walker = new tinymce.dom.TreeWalker(startNode);

do {
    console.log(walker.current());
} while (walker.next());

Methods

name summary defined by
current() Returns the current node. tinymce.dom.TreeWalker
next() Walks to the next node in tree. tinymce.dom.TreeWalker
prev() Walks to the previous node in tree. tinymce.dom.TreeWalker

Methods

current

current():Node

Returns the current node.

Return value
  • Node – Current node where the walker is.

next

next():Node

Walks to the next node in tree.

Return value
  • Node – Current node where the walker is after moving to the next node.

prev

prev():Node

Walks to the previous node in tree.

Return value
  • Node – Current node where the walker is after moving to the previous node.

Can’t find what you’re looking for? Let us know.

Except as otherwise noted, the content of this page is licensed under the Creative Commons BY-NC-SA 3.0 License, and code samples are licensed under the Apache 2.0 License.

您暂时不能评论!

管理员开启了需要登录才能够评论,你可以免费注册一个本站的账号。

还没有评论!

目前还没有任何评论,快来抢沙发吧!