easyui tree点击节点获取全路径
easyui tree点击节点,或者这个节点的全路径,从根节点到点击节点的路径,效果如下
easyui tree点击节点获取全路径源代码如下
<script> function getPath(node) { var path = node.text; while (node = $(this).tree('getParent', node.target)) path = node.text + ' -> ' + path; alert(path) } </script> <ul class="easyui-tree" data-options="onClick:getPath">
加支付宝好友偷能量挖...
原创文章,转载请注明出处:easyui tree点击节点获取全路径