-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathloading.html
More file actions
48 lines (41 loc) · 1020 Bytes
/
loading.html
File metadata and controls
48 lines (41 loc) · 1020 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>登入模擬</title>
</head>
<script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js">
</script>
<body>
<form action="">
帳號: <input id="naga" type="text" name="a"><br>
密碼: <input id="miti" type="text" name="b">
<button id="loading" type="button">登入!</button><br>
成功與否: <span id="answer"></span>
</form>
<script>
$(document).ready(function(){
$("#loading").click(function(){
var a=$("#naga").val();
var b=$("#miti").val();
console.log(a);
if(a!=3){
$("#answer").text("Fl");
}
if(a==3){
if(b==4){
$("#answer").text("tr");
}
else{
$("#answer").text("False");
}
}
});
});
</script>
if(a==3&&b==4){
$("#answer").text("True");
}
else {
$("#answer").text("False");
}