nuxt安装jquery

npm install jquery --save nuxt.config.js: const webpack=require(‘webpack’); build: { /* ** You can extend webpack config here */ plugins: [ new webpack....

vue打包删除console.log

利用UglifyJsPlugin插件来实现项目打包后,删除debugger和console语句 在build/webpack.prod.conf.js文件中添加如下代码 plugin:[ new UplifyJsPlugin(){ uglifyOptions: { compress: { warning...

canvas实现公司印章

<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>HTML5 Canvas画印章</title> <script type="text/javascript" src="https://cdn.bootcss.com/jquery/2...

解决在vue中使用swiper loop失效的问题

1.初始化完成后 swiper 轮播出现问题1:不能自动切换 1)问题产生原因: axios 执行get指令是异步请求 即在axios请求数据过程中 initSwiper运行时要绑定的部分元素节点还没有创建成功 导致swiper插件中部分指定并没有绑定到指定元素节点上 导致swiper轮播出现异常 2)...

egg RESTful

Method Path Route Name Controller.Action GET /posts posts app.controllers.posts.index GET /posts/new new_post app.controllers.posts.new GET /posts/:id p...

egg 上传文件

#route.js中添加一个路由规则 router.post('/upload',controller.upload.index); 在controller中新建upload文件 'use strict'; //node.js 文件操作对象 const fs = require('fs'); //nod...