jQuery zTree v3.5 例項3 非同步樹及後臺(springMVC+mybatis)實
最終效果:
點選非葉子節點時,向後臺傳送請求,獲取下級選單
前臺程式碼如下:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
<%@
page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%
String
path = request.getContextPath();
String
basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<! DOCTYPE
html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> < html >
< head >
< meta
http-equiv = "Content-Type"
content = "text/html;
charset=UTF-8" >
< title >Insert
title here</ title >
</ head >
< script
type = "text/javascript"
src="<%=basePath %>/js/jquery-1.8.1.js"></ script >
< script
|