-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
162 lines (125 loc) · 10.7 KB
/
index.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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>JSDoc: Home</title>
<script src="scripts/prettify/prettify.js"> </script>
<script src="scripts/prettify/lang-css.js"> </script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
<link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
</head>
<body>
<div id="main">
<h1 class="page-title">Home</h1>
<h3> </h3>
<section>
<article><h1>common-js</h1>
<p>一些经常用到的js方法,为了一个方法就用一个插件就显得小题大做了</p>
<h2>内容</h2>
<p>目前已经整理了以下相关内容的方法,如果你有其他经常用到的方法,欢迎联系我(wx:w953075999)</p>
<table>
<thead>
<tr>
<th style="text-align:center">主题</th>
<th style="text-align:center">描述</th>
<th style="text-align:center">代码地址</th>
<th style="text-align:center">jsdoc地址</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:center">byte</td>
<td style="text-align:center">字节操作</td>
<td style="text-align:center"><a href="http://github.com/merrier/common-js/blob/master/code/byte.js">byte.js</a></td>
<td style="text-align:center"><a href="http://merrier.github.io/common-js/byte.js.html">byte.js.html</a></td>
</tr>
<tr>
<td style="text-align:center">compatibility</td>
<td style="text-align:center">兼容性相关</td>
<td style="text-align:center"><a href="http://github.com/merrier/common-js/blob/master/code/compatibility.js">compatibility.js</a></td>
<td style="text-align:center"><a href="http://merrier.github.io/common-js/compatibility.js.html">compatibility.js.html</a></td>
</tr>
<tr>
<td style="text-align:center">date</td>
<td style="text-align:center">日期、时间相关</td>
<td style="text-align:center"><a href="http://github.com/merrier/common-js/blob/master/code/date.js">date.js</a></td>
<td style="text-align:center"><a href="http://merrier.github.io/common-js/date.js.html">date.js.html</a></td>
</tr>
<tr>
<td style="text-align:center">h5</td>
<td style="text-align:center">h5新特性相关</td>
<td style="text-align:center"><a href="http://github.com/merrier/common-js/blob/master/code/h5.js">h5.js</a></td>
<td style="text-align:center"><a href="http://merrier.github.io/common-js/h5.js.html">h5.js.html</a></td>
</tr>
<tr>
<td style="text-align:center">md5</td>
<td style="text-align:center">md5加密、解密</td>
<td style="text-align:center"><a href="http://github.com/merrier/common-js/blob/master/code/md5.js">md5.js</a></td>
<td style="text-align:center"><a href="http://merrier.github.io/common-js/md5.js.html">md5.js.html</a></td>
</tr>
<tr>
<td style="text-align:center">mobile</td>
<td style="text-align:center">移动端常用</td>
<td style="text-align:center"><a href="http://github.com/merrier/common-js/blob/master/code/mobile.js">mobile.js</a></td>
<td style="text-align:center"><a href="http://merrier.github.io/common-js/mobile.js.html">mobile.js.html</a></td>
</tr>
<tr>
<td style="text-align:center">number</td>
<td style="text-align:center">数字操作</td>
<td style="text-align:center"><a href="http://github.com/merrier/common-js/blob/master/code/number.js">number.js</a></td>
<td style="text-align:center"><a href="http://merrier.github.io/common-js/number.js.html">number.js.html</a></td>
</tr>
<tr>
<td style="text-align:center">regexp</td>
<td style="text-align:center">正则表达式总结</td>
<td style="text-align:center"><a href="http://github.com/merrier/common-js/blob/master/code/regexp.js">regexp.js</a></td>
<td style="text-align:center"><a href="http://merrier.github.io/common-js/regexp.js.html">regexp.js.html</a></td>
</tr>
<tr>
<td style="text-align:center">string</td>
<td style="text-align:center">字符串常用函数</td>
<td style="text-align:center"><a href="http://github.com/merrier/common-js/blob/master/code/string.js">string.js</a></td>
<td style="text-align:center"><a href="http://merrier.github.io/common-js/string.js.html">string.js.html</a></td>
</tr>
<tr>
<td style="text-align:center">style</td>
<td style="text-align:center">样式相关</td>
<td style="text-align:center"><a href="http://github.com/merrier/common-js/blob/master/code/style.js">style.js</a></td>
<td style="text-align:center"><a href="http://merrier.github.io/common-js/style.js.html">style.js.html</a></td>
</tr>
<tr>
<td style="text-align:center">others</td>
<td style="text-align:center">其他(未分类)</td>
<td style="text-align:center"><a href="http://github.com/merrier/common-js/blob/master/code/others.js">others.js</a></td>
<td style="text-align:center"><a href="http://merrier.github.io/common-js/others.js.html">others.js.html</a></td>
</tr>
</tbody>
</table>
<p>为了让更多的人用到,代码全部采用ES5规范书写,如果你习惯用ES6语法,我相信你也会很乐意稍微加点东西让它变成ES6格式的~</p>
<h2>致谢</h2>
<p>以上这些方法并不属于我的个人创作,只是对其他人的代码进行的总结,在此特别感谢那些"大牛",是他们的智慧让前端的轮子越来越多!(排名不分前后)</p>
<ul>
<li><a href="https://github.com/jsfront/src/blob/master/js.md">JS前端开发联盟群</a></li>
<li><a href="https://github.com/chokcoco">Coco</a></li>
<li><a href="http://xjinjin.net/">xjinjin</a></li>
</ul>
<h2>其他人的总结</h2>
<ul>
<li><a href="https://juejin.im/post/5da1a04ae51d45783d6122bf">JavaScript 工具函数大全(新)</a></li>
</ul></article>
</section>
</div>
<nav>
<h2><a href="index.html">Home</a></h2><h3>Global</h3><ul><li><a href="global.html#addQuote">addQuote</a></li><li><a href="global.html#addStyle">addStyle</a></li><li><a href="global.html#appendQuery">appendQuery</a></li><li><a href="global.html#bs2">bs2</a></li><li><a href="global.html#bs4">bs4</a></li><li><a href="global.html#bs8">bs8</a></li><li><a href="global.html#byteCount">byteCount</a></li><li><a href="global.html#CanvasTest">CanvasTest</a></li><li><a href="global.html#cloneDeep">cloneDeep</a></li><li><a href="global.html#copyTextToClipboard">copyTextToClipboard</a></li><li><a href="global.html#countItemNum">countItemNum</a></li><li><a href="global.html#cssTest">cssTest</a></li><li><a href="global.html#dateToString">dateToString</a></li><li><a href="global.html#debounce">debounce</a></li><li><a href="global.html#digitUppercase">digitUppercase</a></li><li><a href="global.html#escapeHTML">escapeHTML</a></li><li><a href="global.html#escapeRegExp">escapeRegExp</a></li><li><a href="global.html#formatDate">formatDate</a></li><li><a href="global.html#formatDuration">formatDuration</a></li><li><a href="global.html#genDateArray">genDateArray</a></li><li><a href="global.html#generateDaysArray">generateDaysArray</a></li><li><a href="global.html#genRandomColor">genRandomColor</a></li><li><a href="global.html#genRandomHEX">genRandomHEX</a></li><li><a href="global.html#genRandomId">genRandomId</a></li><li><a href="global.html#genRandomNum">genRandomNum</a></li><li><a href="global.html#genRandomString">genRandomString</a></li><li><a href="global.html#genStarScore">genStarScore</a></li><li><a href="global.html#genTimeStamp">genTimeStamp</a></li><li><a href="global.html#getBrowserName">getBrowserName</a></li><li><a href="global.html#getCookie">getCookie</a></li><li><a href="global.html#getCurrentPath">getCurrentPath</a></li><li><a href="global.html#getDateDiff">getDateDiff</a></li><li><a href="global.html#getDevice">getDevice</a></li><li><a href="global.html#getInputIndex">getInputIndex</a></li><li><a href="global.html#getJsDir">getJsDir</a></li><li><a href="global.html#getLocation">getLocation</a></li><li><a href="global.html#getNetType">getNetType</a></li><li><a href="global.html#getPageHeight">getPageHeight</a></li><li><a href="global.html#getPageViewWidth">getPageViewWidth</a></li><li><a href="global.html#getPageWidth">getPageWidth</a></li><li><a href="global.html#getRandomItem">getRandomItem</a></li><li><a href="global.html#getRequestParams">getRequestParams</a></li><li><a href="global.html#getRoundNum">getRoundNum</a></li><li><a href="global.html#getSearchParams">getSearchParams</a></li><li><a href="global.html#getStringLength">getStringLength</a></li><li><a href="global.html#getSystem">getSystem</a></li><li><a href="global.html#getType">getType</a></li><li><a href="global.html#getUrlState">getUrlState</a></li><li><a href="global.html#hexMd5">hexMd5</a></li><li><a href="global.html#hexToRgba">hexToRgba</a></li><li><a href="global.html#initRequestAnimationFrame">initRequestAnimationFrame</a></li><li><a href="global.html#isContains">isContains</a></li><li><a href="global.html#isDigit">isDigit</a></li><li><a href="global.html#isEndsWith">isEndsWith</a></li><li><a href="global.html#isStartsWith">isStartsWith</a></li><li><a href="global.html#loadScript">loadScript</a></li><li><a href="global.html#loadStyle">loadStyle</a></li><li><a href="global.html#localStorageTest">localStorageTest</a></li><li><a href="global.html#move">move</a></li><li><a href="global.html#numberUpperFormat">numberUpperFormat</a></li><li><a href="global.html#numOfComma">numOfComma</a></li><li><a href="global.html#numOfComma2">numOfComma2</a></li><li><a href="global.html#objToQuery">objToQuery</a></li><li><a href="global.html#pad">pad</a></li><li><a href="global.html#pseudoHack">pseudoHack</a></li><li><a href="global.html#regularExpressionTest">regularExpressionTest</a></li><li><a href="global.html#remInit">remInit</a></li><li><a href="global.html#repeat">repeat</a></li><li><a href="global.html#replaceAll">replaceAll</a></li><li><a href="global.html#reverse">reverse</a></li><li><a href="global.html#sessionStorageTest">sessionStorageTest</a></li><li><a href="global.html#setCookie">setCookie</a></li><li><a href="global.html#showDomOutline">showDomOutline</a></li><li><a href="global.html#stringToDate">stringToDate</a></li><li><a href="global.html#stripHTMLTags">stripHTMLTags</a></li><li><a href="global.html#stripScripts">stripScripts</a></li><li><a href="global.html#SVGTest">SVGTest</a></li><li><a href="global.html#throttle">throttle</a></li><li><a href="global.html#timeAgo">timeAgo</a></li><li><a href="global.html#toAscii">toAscii</a></li><li><a href="global.html#toHump">toHump</a></li><li><a href="global.html#trim">trim</a></li><li><a href="global.html#truncate">truncate</a></li><li><a href="global.html#ucfirst">ucfirst</a></li><li><a href="global.html#webpAnimataionSupportDetect">webpAnimataionSupportDetect</a></li></ul>
</nav>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Mon Feb 14 2022 16:57:07 GMT+0800 (China Standard Time)
</footer>
<script> prettyPrint(); </script>
<script src="scripts/linenumber.js"> </script>
</body>
</html>