Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用jqTree以树格式显示 JSON 数据。在实施演示时jqTree我收到此错误:
jqTree
“未捕获的类型错误:$(...).tree 不是函数”
不要使用 ajax,而是尝试像这样指定 JSON 的 url:
<div id="tree1"></div> <script type="text/javascript"> var data = ''; $("#tree1").tree({ dataUrl: '/doc.json', autoOpen: true, dragAndDrop: false }); </script>