jquery tree events didn't work

You should put your js in $(document).ready() like following. Hope this will help you.

1 $(document).ready(function () {
2       $('#tt').tree({
3            onClick: function (node) {
4                 alert(node.text);  
5            }
6       });
7 });
原文地址:https://www.cnblogs.com/ys-wuhan/p/5884887.html