以下是.asp文件中的标记,包含要在此.asp文件中使用的javascript。无法识别包含文件中的TreeApp()函数,并且随后未创建对象。我不确定如何修复它,因为它看起来很琐碎和明显。 include脚本位于对象初始化语句的正上方。
<link REL="stylesheet" TYPE="text/css" HREF="/home/reports/css/menu.css" />
<link rel="stylesheet" type="text/css" href="/includes/classes/tree_app/treeapp.css" />
<script TYPE="text/javascript" language="javascript" src="/includes/Library/javascript/jQuery/js/jquery-1.8.2.min.js"></script>
<script language="JavaScript" src="/includes/classes/tree_app/treeapp.js"></script>
<script language="JavaScript" src="/includes/classes/tree_app/treedef.js"></script>
<script language="JavaScript" src="/includes/classes/tree_app/treedefelement.js"></script>
<script language="JavaScript" src="/includes/classes/tree_app/item.js"></script>
<script language="JavaScript" src="/includes/classes/tree_app/xmltreenode.js"></script>
<script language="JavaScript" src="observer.js"></script>
<script language="JavaScript">
var observer = new Observer();
var treeApp = new TreeApp();
答案 0 :(得分:0)
使用开发人员工具监控从服务器收到的流量。验证是否加载了每个脚本而没有任何404
错误。
Chrome Developer Tools
,Firebug
和Internet Explorer F12 Tools
都提供此功能。