Skip to content

Commit

Permalink
update 1.5.8
Browse files Browse the repository at this point in the history
  • Loading branch information
xuliangzhan committed Mar 18, 2018
1 parent ba74d6b commit 3f961ca
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -664,8 +664,10 @@ XEUtils.cookie.removeItem('name') // 删除
## 混合函数
### 文件 ./customs.js
``` shell
export function custom1 () {
console.log('自定义函数')
import XEUtils from 'xe-utils'

export function toDateStr (date) {
return XEUtils.dateToString(date, 'yyyy-MM-dd HH:mm')
}
```
### 示例 ./main.js
Expand All @@ -677,7 +679,7 @@ import customs from './customs'
XEUtils.mixin(customs)

// 调用自定义扩展函数
XEUtils.custom1()
XEUtils.toDateStr() // 2018-01-01 10:00
```
## License
Expand Down

0 comments on commit 3f961ca

Please sign in to comment.