在工作中经常用的树形菜单,bootstrap树形菜单
<script src="../../dist/js/bootstrap-treeview.js"></script> //引用bootstrap-treeview.js
<script src="../../dist/js/treeview.js"></script> //引用树形菜单的数据 <script type="text/javascript"> $(function() { $('#treeview4').treeview({ color: "#428bca", //树形菜单的颜色 data: defaultData //树形菜单的数据 }); }); </script>
(adsbygoogle = window.adsbygoogle || []).push({});