8-3.html

来自「文件是《精通Javascript+jQuery》的书中实例」· HTML 代码 · 共 25 行

HTML
25
字号
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>括号不匹配</title>
<script language="javascript">
function testPic(x, start, end){
if(x<=end && x>=start){
if(x==start){
alert(x+" is the start of the range");
}
if(x==end){
alert(x+" is the end of the range");
}
if(x!=start && x!=end){
alert(x+" is in the range");
} else{
alert(x+" is not in the range");
}
}
testPic(7,5,8);
</script>
</head>
<body>
</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?