-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
143 lines (140 loc) · 6.95 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>
<body>
<!-- <script src="./bubble-sort/index.js"></script> -->
<!-- <script src="./selection-sort/index.js"></script> -->
<!-- <script src="./dist/getMiddleValue/index.js"></script> -->
<!-- <script src="./insertion-sort/index.js"></script> -->
<!-- <script src="./dist/k/index.js"></script> -->
<!-- <script src="./dist/BSTMiddlerOrder/index.js"></script> -->
<!-- <script src="./dist/BSTPreOrder/index.js"></script> -->
<!-- <script src="./dist/BSTAfterOrder/index.js"></script> -->
<!-- <script src="./dist/RebuildBinaryTree/index.js"></script> -->
<!-- <script src="./dist/GetAfterOrder/index.js"></script> -->
<!-- <script src="./dist/symmetricalBinaryTree/index.js"></script> -->
<!-- <script src="./dist/mirrorBinaryTree/index.js"></script> -->
<!-- <script src="./dist/binaryTreeSearchKNode/index.js"></script> -->
<!-- <script src="./dist/binaryTreeAfterOrder/index.js"></script> -->
<!-- <script src="./dist/binaryTreeMaxDepth/index.js"></script> -->
<!-- <script src="./dist/reverseChainTable/index.js"></script> -->
<!-- <script src="./dist/sortArray/index.js"></script> -->
<!-- <script src="./dist/searchArrayNum/index.js"></script> -->
<!-- <script src="./dist/adjustArrayOrder/index.js"></script> -->
<!-- <script src="./dist/buildArray/index.js"></script> -->
<!-- <script src="./dist/findContinuousSequence/index.js"></script> -->
<!-- <script src="./dist/findContinuousSequence/index.js"></script> -->
<!-- <script src="./dist/FindNumbersWithSum/index.js"></script> -->
<!-- <script src="./dist/findGreatestSumOfSubArray/index.js"></script> -->
<!-- <script src="./dist/twoSum/index.js"></script> -->
<!-- <script src="./dist/IsContinuous/index.js"></script> -->
<!-- <script src="./dist/threeSum/index.js"></script> -->
<!-- <script src="./dist/moreThanHalfNum_Solution/index.js"></script> -->
<!-- <script src="./dist/fourSum/index.js"></script> -->
<!-- <script src="./dist/binarySearch/index.js"></script> -->
<!-- <script src="./dist/stack/index.js"></script> -->
<!-- <script src="./dist/implementStack/index.js"></script> -->
<!-- <script src="./dist/insertion-sort/index.js"></script> -->
<!-- <script src="./dist/heap-sort/index.js"></script> -->
<!-- <script src="./dist/merge-sort/index.js"></script> -->
<!-- <script src="./dist/fast-sort/index.js"></script> -->
<!-- <script src="./dist/mathematical-operations/getSum/index.js"></script> -->
<!-- <script src="./dist/search/2d-array/index.js"></script> -->
<!-- <script src="./dist/search/rotate/index.js"></script> -->
<!-- <script src="./dist/BFS/binary-bfs/index.js"></script> -->
<!-- <script src="./dist/BFS/binary-bfs2/index.js"></script>
<script src="./dist/BFS/binary-bfs3/index.js"></script> -->
<!-- <script src="./dist/BFS/employee/index.js"></script> -->
<!-- <script src="./dist/BFS/island/index.js"></script> -->
<!-- <script src="./dist/BFS/the-same-tree/index.js"></script> -->
<!-- <script src="./dist/BFS/zigzag-level-order/index.js"></script> -->
<!-- <script src="./dist/BFS/connect/index.js"></script> -->
<!-- <script src="./dist/BFS/figure/index.js"></script> -->
<!-- <script src="./dist/BFS/sea/index.js"></script> -->
<!-- <script src="./dist/BFS/solve/index.js"></script> -->
<!-- <script src="./dist/BFS/bridge/index.js"></script> -->
<!-- <script src="./dist/BFS/mines/index.js"></script> -->
<!-- <script src="./dist/BFS/move/index.js"></script> -->
<!-- <script src="./dist/BFS/closed-islands/index.js"></script> -->
<!-- <script src="./dist/BFS/border/index.js"></script> -->
<!-- <script src="./dist/BFS/moving-count/index.js"></script> -->
<!-- <script src="./dist/BFS/snakes-and-ladders/index.js"></script> -->
<!-- <script src="./dist/backtracking/letter-combinations/index.js"></script> -->
<!-- <script src="./dist/backtracking/combination-sum/index.js"></script> -->
<!-- <script src="./dist/backtracking/combination-sum2/index.js"></script> -->
<!-- <script src="./dist/backtracking/partition/index.js"></script> -->
<!-- <script src="./dist/backtracking/restore-ip-addresses/index.js"></script> -->
<!-- <script src="./dist/test.js"></script> -->
<!-- <script src="./dist/backtracking/max-unique-split/index.js"></script> -->
<!-- <script src="./dist/heap/heap-create/heap.js"></script> -->
<!-- <script src="./dist/DFS/num-enclaves/index.js"></script> -->
<!-- <script src="./dist/DynamicProgramming/fib/index.js"></script> -->
<script>
// 插入排序
const arr = [1, 2, 5, 2, 13, 5, 6, 0];
function sort(arr) {
const len = arr.length;
for (let i = 1; i < len; i++) {
let temp = arr[i];
for (let j = i; j > 0; j--) {
if (temp >= arr[j - 1]) break;
arr[j] = arr[j - 1];
}
arr[j] = temp;
}
}
</script>
<script>
// function sendAjax() {
// //构造表单数据
// var formData = new FormData();
// formData.append("username", "johndoe");
// formData.append("id", 123456);
// //创建xhr对象
// var xhr = new XMLHttpRequest();
// xhr.open(
// "POST",
// "http://test-gw.newrank.cn:18080/api/weida/xdnphb/weida/xiaohongfa/schedule/insert"
// );
// //设置xhr请求的超时时间
// xhr.timeout = 3000;
// //设置响应返回的数据格式
// // xhr.responseType = "text";
// //创建一个 post 请求,采用异步
// // headers:{"N-token":"64611db3039a4c3caf798adb7a8d1b35"}
// xhr.setRequestHeader("Content-Type", 'application/x-www-form-urlencoded; charset=UTF-8');
// xhr.setRequestHeader("N-token", "64611db3039a4c3caf798adb7a8d1b35");
// //注册相关事件回调处理函数
// xhr.onload = function (e) {
// if (this.status == 200 || this.status == 304) {
// alert(this.responseText);
// }
// };
// //发送数据
// xhr.send({
// wedaId: "test",
// });
// }
// sendAjax();
// (async function () {
// const res = await fetch(
// "http://test-gw.newrank.cn:18080/api/weida/xdnphb/weida/xiaohongfa/schedule/insert",
// {
// method: "POST",
// body: `wedaId=${Math.random()}`,
// headers: {
// "N-token": "64611db3039a4c3caf798adb7a8d1b35",
// "Content-Type": "application/x-www-form-urlencoded",
// },
// }
// );
// console.log("res==>");
// })();
</script>
</body>
</html>