IE中调用外部JS缺少对象
[code=JScript][/code]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<link rel="stylesheet" href="././javascript/zTree/css/zTreeStyle/zTreeStyle.css" type="text/css">
<script language="javascript" type="text/javascript" src="././javascript/jquery-1.7.min.js" charset="utf-8"></script>
<script language="javascript" type="text/javascript" src="././javascript/zTree/js/jquery.ztree.core-3.2.js" charset="utf-8"></script>
<script language="javascript" type="text/javascript" src="././javascript/zTree/js/jquery.ztree.excheck-3.2.js" charset="utf-8"></script>
<script language="javascript" type="text/javascript" src="././javascript/zTree/js/jquery.ztree.exedit-3.2.js" charset="utf-8"></script>
<script language="javascript" type="text/javascript" src="././javascript/Highchart/js/highcharts.js" charset="utf-8"></script>
<script language="javascript" type="text/javascript" src="././javascript/Highchart/js/modules/exporting.js" charset="utf-8"></script>
<script language="javascript" type="text/javascript" src="././javascript/showPage/xsManage.js" charset="utf-8"></script>
<script language="javascript" type="text/javascript">
$(function(){
var rylb = "<%=rylb%>";
var ssbh = "<%=ssbh%>";
var qhmc = "<%=qhmc%>";
var xxlx = "<%=xxlx%>";
if(rylb == "1901" || rylb == "1902") {
alert(ssbh);
alert(qhmc);
loadTree(ssbh, qhmc);
loadQh(ssbh, "0");
loadQhName(ssbh, "0");
}
else if(rylb == "1903") {
loadXX(ssbh, xxlx);
loadXXName(ssbh);
}
else
alert(rylb);
});
</script>
JS方法:
function loadTree(ssbh, qhmc) {
alert(111);
var setting = {
data: {
simpleData: {
enable: true
}
},
callback: {
onClick: onClick
}
};
var zNodes = [
{id:ssbh,pId:0,name:qhmc,open:true,icon:"././imgs/homepage.png"}
];
$.fn.zTree.init($("#qhzTree"),setting,zNodes);
}
IE开发人员工具中可以定位到xsManage.js,但是调用不到里面的方法。 求大神解答下 哪有问题
------解决方案--------------------
JScript code
//都是两个点吧
../../
------解决方案--------------------