Commit 9e27b051 authored by JingChao's avatar JingChao

Updates angular/hlsUtil.md

Auto commit by GitBook Editor
parent 6848e031
......@@ -18,6 +18,9 @@ APP开发会出现很多功能相同的函数和组件,现封装了很多公
- 返回值为格式化后的时间 如 `2017-09-08`
- 调用实例如下
```javascript
function dataFormat() {
var date = new Date;
alert(date.format('yyyy-MM-dd'));
}
```
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment