-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
52 lines (51 loc) · 1.82 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
<!DOCTYPE html>
<html>
<head lang='en'>
<meta charset='utf-8'>
<meta name='viewport' content='width=device-width'>
<title>EUtils Test Page!</title>
<style>
body {
font-family: 'Helvetica Neue', Arial, sans-serif;
color: #333;
font-weight: 300;
}
</style>
</head>
<body>
<h1>Page For EUtils Test!</h1>
<script src="https://cdn.bootcss.com/es5-shim/4.5.10/es5-shim.min.js"></script>
<script src="https://cdn.bootcss.com/es5-shim/4.5.10/es5-sham.min.js"></script>
<!-- <script src="https://cdn.bootcss.com/babel-polyfill/6.26.0/polyfill.min.js"></script> -->
<script src="http://cdn.ewt360.com/common/js/html5shiv.min.js"></script>
<script src='./dist/eutils.min.js'></script>
<script>
document.write(
'<script src="http://' + (location.host || 'localhost').split(':')[0] +
':35729/livereload.js?snipver=1"></' + 'script>'
);
</script>
<script>
var date = EUtils.dateFormat(1531643785284, 'yyyy-M-d');
console.log(date);
var uuid = EUtils.generateUUID();
console.log(uuid);
var arr1 = [1, 2, 3, 4];
var arr2 = [2, 3, 6, 7];
console.log('intersection', EUtils.intersection(arr1, arr2));
console.log('union',EUtils.union(arr1, arr2));
console.log('minus:',EUtils.minus(arr1, arr2));
EUtils.setCookie('str', 'abcdefg');
EUtils.setCookie('obj', {name: 'value'});
console.log(EUtils.getCookie('str'));
console.log(EUtils.getCookie('obj'));
console.log(EUtils.getCookie('obj', true));
console.log(EUtils.setUrlParam({id: 1, token: '807341-111-111aaa7a7a'}, 'http://www.ewt360.com'));
// EUtils.removeCookie('str');
// EUtils.removeCookie('obj');
// console.log(EUtils.getCookie('str'));
// console.log(EUtils.getCookie('obj'));
// console.log(EUtils.getCookie('obj', true));
</script>
</body>
</html>