Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/80.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法将jQuery1-4.4包含在jsp的_Jquery_Jsp - Fatal编程技术网

无法将jQuery1-4.4包含在jsp的

无法将jQuery1-4.4包含在jsp的,jquery,jsp,Jquery,Jsp,我在jsp页面中使用jquery版本1-4.4 “我的Internet explorer”中会出现以下警报框。 这是我的jsp页面代码 <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://

我在jsp页面中使用jquery版本1-4.4

“我的Internet explorer”中会出现以下警报框。

这是我的jsp页面代码

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!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=ISO-8859-1">
<script type="text/javascript" src="js/jquery-1.4.4.min.js"></script>
<script type="text/javascript">
    $(document).ready(function() {
        $("a").click(function(event) {
            alert("Thanks for visiting!");
        });
    });

    $(document).ready(function() {
        alert("jquery version 1.4.4");
    });
</script>
<title>Insert title here</title>
</head>
<body>
<a href="http://jquery.com/">jQuery</a>
</body>
</html>
但是jquery版本1.3.2运行的代码相同

为什么它不适用于1.4.4版? 甚至它也不适用于jquery 1.3.2更高版本


帮帮我

在浏览器中访问js/jquery-1.4.4.min.js,确保文件可访问


如果没有,那么您可能只需要更新文件的权限。

通过访问浏览器中的js/jquery-1.4.4.min.js,确保文件可访问


如果没有,那么您可能只需要更新文件的权限。

console中是否有错误?console中没有错误。我正在使用Tomcat7版本。好的,Nishant,这将解决我的问题。但当我把jquery1-4.4文件放在我的web文件夹中时,它并没有包括在内。为什么会发生这种情况?控制台有错误吗?控制台没有错误。我正在使用Tomcat7版本。好的,Nishant,这将解决我的问题。但当我把jquery1-4.4文件放在我的web文件夹中时,它并没有包括在内。为什么会这样。?