<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="Generator" content="EditPlus®"> <meta name="Author" content=""> <meta name="Keywords" content=""> <meta name="Description" content=""> <title>Document</title> <!--导入js和css--> <link href="jquery.treeview.css" rel="stylesheet" type="text/css" /> <script src="lib/jquery.js" type="text/javascript"></script> <script src="lib/jquery.cookie.js" type="text/javascript"></script> <script src="jquery.treeview.js" type="text/javascript"></script> <script src="jquery.treeview.async.js" type="text/javascript"></script><!-- 用于异步加载节点--> </head> <body> <ul id="#navigation"> <li>系统管理 <ul> <li>部门管理</li> <li>岗位管理 <ul> <li>岗位增加</li> <li>岗位删除</li> </ul> </li> <li>用户管理 <ul> <li>添加用户</li> <li>修改用户</li> </ul> </li> </ul> </li> <li>审批z流转</li> </ul> <script type="text/javascript"> $(function(){ $("#navigation").treeview({ persist: "location", collapsed: true, unique: true }); }); </script> </body> </html>
id这样写,可以么?请问。。。。你多了一个#
<ul id="#navigation">