图片相关Plugs
一、Lozad.jsLozad.js 是一款基于 IntersectionObserver API 的高性能、轻量级(〜0.5kb)和可配置的懒加载器二、cropperjscropperjs是一款非常强大却又简单的图片裁剪工具三、html2canvashtml2canvas“屏幕快照”、网页截屏四、PhotoSwipePhotoSwipe文档实现类似朋友圈图片查看功能,新浪微博移动web端的图片查
一、Lozad.jsLozad.js 是一款基于 IntersectionObserver API 的高性能、轻量级(〜0.5kb)和可配置的懒加载器二、cropperjscropperjs是一款非常强大却又简单的图片裁剪工具三、html2canvashtml2canvas“屏幕快照”、网页截屏四、PhotoSwipePhotoSwipe文档实现类似朋友圈图片查看功能,新浪微博移动web端的图片查
一、货币计算https://currency.js.orghttps://github.com/scurker/currency.js二、数字精度https://github.com/MikeMcl/bignumber.js三、base64转化https://github.com/dankogai/js-base64四、可配置的选择框/文本输入插件https://joshuajohnson.co.
// 事件监听绑定 export const onEvents = (target, type, handler, option) => { if (target.addEventListener) { target.addEventListener(type, handler, option) } else if (target.on) { target.on(ty
一、通用版const webpack = require('webpack') const TerserPlugin = require('terser-webpack-plugin') const CompressionPlugin = require('compression-webpack-plugin') const MiniCssExtractPlugin = require('mini
一、路由拦截篇与vue不同的是,nuxt需在plugins目录下创建router.js文件export default ({ app, store }) => { app.router.beforeEach((to, from, next) => { next() }) app.router.afterEach((to, from) => { })
结构树// tree数据结构 export default [ { code: "01", desc: "农、林", isOpen: false, hasParent: "N", children: [ { code: "0101",
// 消息提示队列 // 同时有多个api返回失败消息的时候,以队列方式依次显示,避免消息文字显示重叠 const toastQueue = { queue: [], instance: null, enq(message, options = null) { this.queue.push({ message, options }); this.next(); }
水印毫无疑问当然是canvas画图,全局水印 = 将canvas水印DOM定位挂载在document.body上,可以理解为在当前可视窗口最上方盖了一层层级较高的蒙版,这个蒙版就是水印// water-market.js// 水印内容较长可以设置can的width,height属性 // water-market.js // 水印内容较长可以设置can的width,height属性 const
一、全局安装cnpm i -g git-br二、添加备注git config branch.xxx(分支名).description xxx(描述文字)三、查看备注git br
vue-Router官方说明文档:vueRouterEncryption 项目地址:1 加密需要依赖 crypto-js 库,安装npm install crypto-js --save2 手动将github项目中的utils文件夹放入开发项目中3 修改utils/encryption.js中的baseCryptoCode,设置每个项目唯一的16位值4 router.js 引用import Vue