npm install
npm run serve
npm run build
npm run lint
安装工具包 npm install qw-utils
const qwUtils = require('qw-utils')
const jsTimeUtils = new qwUtils.timeUtils()
this.currentTime = jsTimeUtils.getDate()
安装工具包 npm install qw-utils
import { getDate } from 'qw-utils/js/timeUtils';
const timeString: string = getDate();
const qwUtils = require('qw-utils') const clipboardUtils = new qwUtils.clipboardUtils()
//复制内容 clipboardUtils.copyText('要复制粘贴的内容').then(() => { console.log('复制成功啦') })
//粘贴内容 clipboardUtils.readClipboard().then((text) => { this.text = text })
const qwUtils = require('qw-utils')
let data = '' qwUtils.lodashUtils.isEmpty(data) // 结果返回 true
const qwUtils = require('qw-utils') const colorUtils = new qwUtils.colorUtils()
console.log('颜色转换', colorUtils.rgbToHex(110, 200, 99))
const qwUtils = require('qw-utils') const timeUtils = new qwUtils.timeUtils()
console.log('是否在时间内', timeUtils.isBetween('2021-05-02 20:08:20', '2021-05-01 20:08:20', '2021-05-06 20:08:20')) //结果为 true
const qwUtils = require('qw-utils') const logger = new qwUtils.loggerUtils() logger.info("输出信息") logger.enable() //开启日志输出,默认开启 logger.disable() //关闭日志输出