复制代码代码如下:
<٪@ 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> my JSP 'Checkbox.jsp' صفحة البدء </title>
<meta http-equiv = "pragma" content = "no-cache">
<meta http-equiv = "cache-control" content = "no-cache">
<meta http-equiv = "Expires" content = "0">
<meta http-equiv = "الكلمات الرئيسية" content = "Keyword1 ، Keyword2 ، Keyword3">
<meta http-equiv = "description" content = "This is is my past">
<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"). انقر فوق (function () {
// if ($ ("#box"). attr ("checked") == "checked") {
// ALERT ("SS") ؛
//}
//})
if ($ ("#box"). هو (": فحص")) {
تنبيه ("df") ؛
}
})
</script>
</head>
<body>
<type type = "checkbox" id = "box" checked = "checked">
</body>
</html>