forked from everlose/jqfree
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.html
71 lines (64 loc) · 1.69 KB
/
test.html
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>jqfree</title>
<style>
body {
color: #1A1A1A;
font-size: 14px;
}
</style>
<script src="./dist/jqfree.js"></script>
</head>
<body>
<img src="http://image.zhangxinxu.com/image/study/s/s128/mm1.jpg">
<img src="http://image.zhangxinxu.com/image/study/s/s128/mm3.jpg">
<div class="test"><button>click hide img</button></div>
<ol>
<li>test1</li>
<li>test2</li>
<li>test3</li>
<li>test4</li>
<li>test5</li>
</ol>
<script>
$('button').on('click', function (e) {
$('img').hide();
});
//for test ajax function, please run 'node server.js', this is a node web server。
// $.ajax({
// url: '/test.json'
// })
// .then(function (d) {
// console.log(d);
// return $.ajax({
// url: '/test.json'
// })
// }, function (d) {
// console.log(d);
// })
// .then(function (d) {
// console.log(d);
// }, function (d) {
// console.log(d);
// });
// $.jsonp({
// url: '/test.json',
// })
// .then(function (d) {
// console.log(d);
// return $.jsonp({
// url: '/test.json'
// })
// }, function (d) {
// console.log(d);
// })
// .then(function (d) {
// console.log(d);
// }, function (d) {
// console.log(d);
// });
</script>
</body>
</html>