No Description

treeNode.name.html 855B

12345678910111213141516171819202122232425
  1. <div class="apiDetail">
  2. <div>
  3. <h2><span>String</span><span class="path">treeNode.</span>name</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>节点名称。</p>
  9. <p class="highlight_red">1、如果不使用 name 属性保存节点名称,请修改 setting.data.key.name </p>
  10. <p>默认值:无</p>
  11. </div>
  12. </div>
  13. <h3>String 格式说明</h3>
  14. <div class="desc">
  15. <p>节点显示的名称字符串,标准 String 即可,所有特殊字符都会被自动转义</p>
  16. </div>
  17. <h3>treeNode 举例</h3>
  18. <h4>1. 设置节点的名称为 test1、test2、test3</h4>
  19. <pre xmlns=""><code>var nodes = [
  20. { "id":1, "name":"test1"},
  21. { "id":2, "name":"test2"},
  22. { "id":3, "name":"test3"}
  23. ]</code></pre>
  24. </div>
  25. </div>