treeNode.isAjaxing.html 938 B

1234567891011121314151617181920212223242526
  1. <div class="apiDetail">
  2. <div>
  3. <h2><span>Boolean</span><span class="path">treeNode.</span>isAjaxing</h2>
  4. <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
  5. <div class="desc">
  6. <p></p>
  7. <div class="longdesc">
  8. <p>记录 treeNode 节点是否正在进行异步加载。</p>
  9. <p class="highlight_red">初始化节点数据时,由 zTree 增加此属性,请勿提前赋值</p>
  10. </div>
  11. </div>
  12. <h3>Boolean 格式说明</h3>
  13. <div class="desc">
  14. <p> true 表示节点正在进行异步加载</p>
  15. <p> false 表示节点没有进行异步加载</p>
  16. </div>
  17. <h3>treeNode 举例</h3>
  18. <h4>1. 查看当前被选中的节点是否节点正在进行异步加载</h4>
  19. <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
  20. var sNodes = treeObj.getSelectedNodes();
  21. if (sNodes.length > 0) {
  22. var isAjaxing = sNodes[0].isAjaxing;
  23. }
  24. </code></pre>
  25. </div>
  26. </div>