treeNode.target.html 856 B

123456789101112131415161718192021222324
  1. <div class="apiDetail">
  2. <div>
  3. <h2><span>String</span><span class="path">treeNode.</span>target</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>设置点击节点后在何处打开 url。<span class="highlight_red">[treeNode.url 存在时有效]</span></p>
  9. <p>默认值:无</p>
  10. </div>
  11. </div>
  12. <h3>String 格式说明</h3>
  13. <div class="desc">
  14. <p>同超链接 target 属性: "_blank", "_self" 或 其他指定窗口名称 </p>
  15. <p>省略此属性,则默认为 "_blank"</p>
  16. </div>
  17. <h3>treeNode 举例</h3>
  18. <h4>1. 设置点击某节点时,弹出新页面</h4>
  19. <pre xmlns=""><code>var nodes = [
  20. { "id":1, "name":"test1", "url":"http://myTest.com", "target":"_blank"},
  21. ......
  22. ]</code></pre>
  23. </div>
  24. </div>