@H_301_0@本文实例讲述了JavaScript实现的DOM树遍历方法。分享给大家供大家参考,具体如下:@H_3011@
@H3010@<span style="font-size: medium">二叉 DOM 树的遍历
@H301_1@
<div class="jb51code">
<pre class="brush:js;">
function Tree() {
var Node = function(key){
this.key = key;
this.left = null;
this.right = null;
}
root =null;
}