anchor.diff:      });
   </script>
   <template id="treetable">
  -    <button>测试</button>
       <table class="table table-bordered table-hover">
           <thead>
           <tr>
  
positive.code: <%-- Vue Treetable 组件--%>
  <%-- 参考：http://blog.fengxiaotx.com/archives/545 --%>
  <script>
      Vue.filter('space', function (value) {
          var space = "";
          for (var i = 0;i < value; i++) {
              space += "&nbsp;&nbsp;&nbsp;&nbsp;";
  
negative.code:                         var childMenu = childList[i];
  
                          childMenu.level = level;
                          childMenu.isShow = level <= 3; // 是否显示，1,2,3级菜单默认显示
                          childMenu.isExpanded = level <= 2; // 是否展开菜单，1,2,3级菜单默认展开
                          tempList.push(childMenu);
  
                          initData(childMenu, level + 1, childMenu);
                      }
                  }
              },
              toggole : function (menu) {
                  debugger;
  
                  /**
                   * 递归切换菜单的展开和收缩状态
                   */
                  var isExpanded = menu.isExpanded;
                  toggleChildMenuList(menu, !isExpanded);
                  menu.isExpanded = !isExpanded;
  
                  function toggleChildMenuList(menu, isShow) {
                      var list = menu.childList;
                      if(list == null) {
                          return;
                      }
                      for (var i = 0; i < list.length; i++) {
                          var childMenu = list[i];
                          childMenu.isShow = isShow;
                          toggleChildMenuList(childMenu, isShow);
                      }
                  }
              }
  