0.1.0 • Published 5 years ago

yocee v0.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

yocee NPM Version NPM Downloads size-image

自用的js方法集,不断更新中

使用方式

npm i yocee -S

ES6

import yocee from 'yocee'
yocee.formatDate(111100000)

CommonJS

var yocee = require('yocee');
yocee.formatDate(111100000)

直接引入

<script src="yocee.min.js"></script>
  yocee.formatDate(111100000)

函数说明

函数名称函数用途参数说明
formatDate格式化时间戳sec: Number // 需要处理的时间戳format?: string // 格式化后的样式 默认值: 'y-m-d h:i'
getType判断数据类型data: any // 需要被判断的数据

License

MIT

0.1.0

5 years ago