安装
npm install lodash
使用
import _ from 'lodash'
_.max([2, 1, 7, 0,6]) // 返回数组中的最大值 => 7
_.intersection...([1, 2, 3], [2, 3, 4]) // 返回多个数组的交集 => [2, 3]
mescroll.js
mescroll.js是一款精致的、在H5端运行的下拉刷新和上拉加载插件。...{
position: fixed;
top: 44px;
bottom: 0;
height: auto;
}
Day.js
Day.js是一个极简的处理时间和日期的...2022-02-21 20:06
dayjs('2022-2-21 20:06').toDate() // => Mon Feb 21 2022 20:06:00 GMT+0800 (中国标准时间)
Chart.js...Chart.js是为设计和开发人员准备的简单、灵活的 JavaScript 图表工具
安装
npm install chart.js
使用
<canvas id="myChart" width="400