复制代码代码如下:
<%@ page language = "java" import = "java.util.*" pageencoding = "utf-8"%>
-
String Path = request.getContextPath ();
String basepath = request.getScheme ()+": //"+request.getServerName ()+":"+request.getServerport ()+path+"/";
-
<! doctype html public "-// w3c // dtd html 4.01 transitional // en">
<html>
<head>
<base href = "<%= basepath%>">
<title> หน้าเริ่มต้นของฉัน jsp 'copbox.jsp' </title>
<meta http-equiv = "pragma" content = "no-cache">
<meta http-equiv = "cache-control" content = "no-cache">
<meta http-equiv = "หมดอายุ" content = "0">
<meta http-equiv = "คำหลัก" content = "keyword1, keyword2, keyword3">
<meta http-equiv = "คำอธิบาย" content = "นี่คือหน้าของฉัน">
<script type = "text/javascript" src = "< %= request.getContextPath () %>/jQuery/jQuery-1.7.min.js"> </script>
-
<link rel = "stylesheet" type = "text/css" href = "styles.css">
-
<script type = "text/javascript">
$ (function () {
// $ ("#box") คลิก (ฟังก์ชัน () {
// ถ้า ($ ("#box"). attr ("ตรวจสอบ") == "ตรวจสอบ") {
// Alert ("SS");
-
-
if ($ ("#box") คือ (": ตรวจสอบ")) {
การแจ้งเตือน ("DF");
-
-
</script>
</head>
<body>
<อินพุต type = "ช่องทำเครื่องหมาย" id = "box" checked = "ตรวจสอบ">
</body>
</html>