yocee

我的js工具库

Usage no npm install needed!

<script type="module">
  import yocee from 'https://cdn.skypack.dev/yocee';
</script>

README

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