-
Notifications
You must be signed in to change notification settings - Fork 15
/
usages.html
43 lines (43 loc) · 1.54 KB
/
usages.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Funclib.js</title>
</head>
<body>
<div id="myDiv" style="width: 100px; height: 100px; background: red;"></div>
<input type="text" id="ipt" oninput="onIptChange()">
<script src="./node_modules/jquery/dist/jquery.min.js"></script>
<script src="./src/funclib.js"></script>
<!-- <script src="./src/funclib.min.js"></script> -->
<script>
/**
* Url
* =======================================================================
*/
// const url = 'https://www.baidu.com/s?wd=%E7%99%BE%E5%BA%A6&rsv_spt=10';
// fn.log(fn.parseQueryString(url));
// const params = {name: 'Tom', age: 28};
// fn.log(fn.stringifyQueryString(params));
// fn.log($('#ipt').val(), 'Woooooooooooooooooo00000000000000000000066566600660000a');
/**
* Function
* =======================================================================
*/
// var logVal = fn.debounce(function() {
// fn.log($('#ipt').val(), false);
// }, 500);
// function onIptChange(e) {
// logVal();
// }
// var showClientTop = fn.throttle(function(e) {
// fn.log(e.clientX, false);
// }, 1000);
// $(document).mousemove(function(e) {
// showClientTop(e);
// });
</script>
</body>
</html>