【发布时间】:2016-08-31 05:20:56
【问题描述】:
这是我的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 src="js/scripts.js" type="text/javascript"></script>
<title>error</title>
</head>
<body>
No user found
</body>
</html>
这是项目文件结构:
这是我在浏览器中单击查看页面源代码时看到的内容
<!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">
<title>error</title>
</head>
<body>
No user found
</body>
</html>
而scripts.js中的代码是
alert("hello");
帮帮我.... 无法检测到脚本标签。 这在 html 页面中使用相同时工作正常,问题仅与 jsp 页面有关。
谢谢。
【问题讨论】:
标签: javascript jquery html jsp detection