-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.html
executable file
·40 lines (38 loc) · 957 Bytes
/
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<div style="width:600px;height:600px;background-image: url(img/test.png);background-position: center center;background-size: auto 100%;"></div>
<img src="img/test.png" alt="">
</body>
</html>
<script type="text/javascript">
localStorage.setItem("uid","99999");
function getMyDay(date){
var week;
if(date.getDay()==0){
week="周日"
}else if(date.getDay()==1){
week="周一"
}else if(date.getDay()==2){
week="周二"
}else if(date.getDay()==3){
week="周三"
}else if(date.getDay()==4){
week="周四"
}else if(date.getDay()==5){
week="周五"
}else if(date.getDay()==6){
week="周六"
}
return week;
}
console.log(getMyDay(new Date("2017-08-21")))
</script>
<script type="text/javascript">
var uid = localStorage.getItem("uid");
console.log(localStorage);
</script>