Skip to content

Commit f83b91a

Browse files
author
zhangyonghong
committed
Merge branch 'XinHuaLuFang-master'
2 parents e2de568 + 6e991df commit f83b91a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

js.md

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

149149
```
150150

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

153159

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

0 commit comments

Comments
 (0)