这对我有用。基本上jquery在
<script
src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.12.1/jquery.min.js">
</script>
以及错误的PHP标记。谢谢你这么说。您可以在下面找到完整的代码。
<title> Hi all</title>
<link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri().
\'/js/jstree/dist/themes/default/style.min.css\';?>" />
<div id="data">
<ul>
<li>One</li>
<li>Two</li>
<li>Three
<ul>
<li>Bike</li>
<li>Ride</li>
</ul>
</li>
<li>JOKE</li>
</ul>
</div>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.12.1/jquery.min.js">
</script>
<script src="<?php echo
get_stylesheet_directory_uri().\'/js/jstree/dist/jstree.min.js\';?>"></script>
<script src="<?php echo
get_stylesheet_directory_uri().\'/js/jstree/dist/tree.js\';?>"></script>