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 });

 

相关文章:

  • 2022-01-29
  • 2021-06-01
  • 2022-01-08
  • 2022-12-23
  • 2022-12-23
  • 2021-06-18
  • 2022-12-23
  • 2022-02-28
猜你喜欢
  • 2021-06-19
  • 2021-12-18
  • 2022-12-23
  • 2021-12-19
  • 2021-09-16
  • 2022-12-23
  • 2021-11-21
相关资源
相似解决方案