level 1
rick_jiale
楼主
简单的做个例子,但在IE(8、9)下报错,SCRIPT1014: 无效字符 test.jsp, 行1 字符1
去掉navSetting部分就没事了
请高手帮忙看看
代码如下:
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib uri="/WEB-INF/tlds/app" prefix="midea"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>My JSP 'test.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
--> </head>
<link rel="stylesheet"
href="<midea:ContextPath/>/public/ztree/css/zTreeStyle.css"
type="text/css" /> <script type="text/javascript"
src="<midea:ContextPath/>/public/ztree/js/jquery-1.4.4.min.js"></script> <script type="text/javascript"
src="<midea:ContextPath/>/public/ztree/js/jquery.ztree.all-3.2.js"></script> <script type="text/javascript">
<!--
$(document).ready(function(){
var navSetting = {
async: {
enable: true,
/menu.do?method=loadNode'">url:'<midea:ContextPath/>/menu.do?method=loadNode',
autoParam:['id'],
otherParam:{'otherParam':'zTreeAsyncTest'}
}
};
$.fn.zTree.init($('#leftTree'), navSetting);
});
//-->
</script>
<body>
<div id="leftTree" class="ztree"></div>
</body>
</html>
2012年05月26日 02点05分
1
去掉navSetting部分就没事了
请高手帮忙看看
代码如下:
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib uri="/WEB-INF/tlds/app" prefix="midea"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>My JSP 'test.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
--> </head>
<link rel="stylesheet"
href="<midea:ContextPath/>/public/ztree/css/zTreeStyle.css"
type="text/css" /> <script type="text/javascript"
src="<midea:ContextPath/>/public/ztree/js/jquery-1.4.4.min.js"></script> <script type="text/javascript"
src="<midea:ContextPath/>/public/ztree/js/jquery.ztree.all-3.2.js"></script> <script type="text/javascript">
<!--
$(document).ready(function(){
var navSetting = {
async: {
enable: true,
/menu.do?method=loadNode'">url:'<midea:ContextPath/>/menu.do?method=loadNode',
autoParam:['id'],
otherParam:{'otherParam':'zTreeAsyncTest'}
}
};
$.fn.zTree.init($('#leftTree'), navSetting);
});
//-->
</script>
<body>
<div id="leftTree" class="ztree"></div>
</body>
</html>