javascript 函数库、工具类,提供一套实用的基础函数、日期转换函数等...
7+ ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | 6.1+ ✔ |
npm install xe-utils
Using nodejs
const XEUtils = require('xe-utils')
<script src="https://cdn.jsdelivr.net/npm/xe-utils"></script>
import XEUtils from 'xe-utils'
XEUtils.toDateString(Date.now()) // 2018-01-01 10:30:28
XEUtils.toStringDate('2018-01-01 10:30:00') // Mon Jan 01 2018 10:30:00 GMT+0800 (中国标准时间)
Copyright (c) 2017-present, Xu Liangzhan