Skip to content

Commit 2de8623

Browse files
committed
Update js.md
1 parent 0cc282d commit 2de8623

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

js.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,12 @@ $(function () {
148148

149149
```
150150

151+
- 某年某月的1号为星期几
152+
```
153+
var weekday = ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"];
154+
weekday[new Date(2015, 9, 1).getDay()]; //2015年10月1号
155+
```
156+
151157
#### 2. Mobile - js
152158

153159

@@ -193,4 +199,4 @@ WeixinJSBridge.invoke('getBrandWCPayRequest', d, function(res){
193199
}
194200
loading.hide();
195201
});
196-
```
202+
```

0 commit comments

Comments
 (0)