论坛首页 Web前端技术论坛

jquery treeview 使用时候,只展示一层问题

浏览 2226 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (7) :: 隐藏帖 (0)
作者 正文
   发表时间:2009-11-30   最后修改:2009-12-08
			 	$("#categorys").treeview({
					persist: "location",
					control: "#treecontrol",
					unique: true
				});//只展开一层			 	



$("#categorys").treeview({
					control: "#treecontrol",
					persist: "cookie"
				});
		  	});//展开所有层.



		                <div class="areaBody">
							<div id="treecontrol">
								[<a href="#">Collapse</a>]&nbsp;[<a href="#">Expand</a>]&nbsp;[<a href="#">Toggle</a>]
							</div>
				            <ul id="categorys">
				             	<li id="root">
				             	</li>
				            </ul>
		               	</div> 		  	});
论坛首页 Web前端技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics