Skip to content

Commit bc6f2b9

Browse files
committed
update jquery
1 parent 6207663 commit bc6f2b9

29 files changed

+139
-128
lines changed

jquery/.idea/workspace.xml

Lines changed: 98 additions & 127 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jquery/Jquery_pwh/images/0.jpg

20.2 KB
Loading

jquery/Jquery_pwh/images/1.jpg

34.9 KB
Loading

jquery/Jquery_pwh/images/10.jpg

42 KB
Loading

jquery/Jquery_pwh/images/11.jpg

38.2 KB
Loading

jquery/Jquery_pwh/images/12.jpg

34.5 KB
Loading

jquery/Jquery_pwh/images/13.jpg

26.2 KB
Loading

jquery/Jquery_pwh/images/14.jpg

14.3 KB
Loading

jquery/Jquery_pwh/images/15.jpg

26.2 KB
Loading

jquery/Jquery_pwh/images/16.jpg

26.2 KB
Loading

jquery/Jquery_pwh/images/17.jpg

41.9 KB
Loading

jquery/Jquery_pwh/images/18.jpg

17.1 KB
Loading

jquery/Jquery_pwh/images/19.jpg

24.5 KB
Loading

jquery/Jquery_pwh/images/2.jpg

32 KB
Loading

jquery/Jquery_pwh/images/20.jpg

40.7 KB
Loading

jquery/Jquery_pwh/images/21.jpg

21.7 KB
Loading

jquery/Jquery_pwh/images/22.jpg

35.2 KB
Loading

jquery/Jquery_pwh/images/23.jpg

18.6 KB
Loading

jquery/Jquery_pwh/images/24.jpg

30.5 KB
Loading

jquery/Jquery_pwh/images/3.jpg

37.6 KB
Loading

jquery/Jquery_pwh/images/4.jpg

25.8 KB
Loading

jquery/Jquery_pwh/images/5.jpg

25.2 KB
Loading

jquery/Jquery_pwh/images/6.jpg

22.3 KB
Loading

jquery/Jquery_pwh/images/7.jpg

24.8 KB
Loading

jquery/Jquery_pwh/images/8.jpg

36.1 KB
Loading

jquery/Jquery_pwh/images/9.jpg

24.8 KB
Loading

jquery/Jquery_pwh/js/jquery-3.1.0.min.js

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jquery/ch6/jsp/demo4-post/demo1.html

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2+
"http://www.w3.org/TR/html4/loose.dtd">
3+
<html>
4+
<head>
5+
<title>Title</title>
6+
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
7+
<!-- 引入jQuery -->
8+
<script src="../scripts/jquery.js" type="text/javascript"></script>
9+
<script type="text/javascript">
10+
$(document).ready(function () {
11+
12+
var str = getFormatDate();
13+
console.log(str);
14+
alert(str);
15+
})
16+
17+
18+
19+
function getFormatDate(){
20+
var nowDate = new Date();
21+
var year = nowDate.getFullYear();
22+
var month = nowDate.getMonth() + 1 < 10 ? "0" + (nowDate.getMonth() + 1) : nowDate.getMonth() + 1;
23+
var date = nowDate.getDate() < 10 ? "0" + nowDate.getDate() : nowDate.getDate();
24+
var hour = nowDate.getHours()< 10 ? "0" + nowDate.getHours() : nowDate.getHours();
25+
var minute = nowDate.getMinutes()< 10 ? "0" + nowDate.getMinutes() : nowDate.getMinutes();
26+
var second = nowDate.getSeconds()< 10 ? "0" + nowDate.getSeconds() : nowDate.getSeconds();
27+
return year + "-" + month + "-" + date+" "+hour+":"+minute+":"+second;
28+
}
29+
</script>
30+
</head>
31+
hello
32+
33+
<body>
34+
35+
</body>
36+
</html>

jquery/ch6/jsp/demo4-post/post4.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
$("#resText").load("post1.jsp",{
2020
username: $("#username").val(),
2121
content: $("#content").val()
22-
});
22+
});
2323
})
2424
})
2525
</script>

0 commit comments

Comments
 (0)