npm i compression-webpack-plugin@5.0.1 -D
修改 vue.config.js
const CompressionWebpackPlugin = require("compression-webpack-plugin")...
yekong
4年前 (2021-01-23)
喜欢
vue 使用webpack插件打包时候报错
Cannot read property ‘tapPromise‘ of undefined
解决方法:
npm uninstall compression-webpack-plugin
npm i compression-webp...
yekong
4年前 (2021-01-23)
喜欢
//火狐浏览器
.scrollBar {
scrollbar-width: 'auto'; //只有 auto、thin、none
scrollbar-color: #368dff #2652bd; /* 第一个颜色为滚动条的颜色, 第二个颜色为滚动条轨道的颜色 */
...
yekong
4年前 (2021-01-13)
喜欢
传一个参数
//html
{{aa | filterAa}}
//js
filters:{
filterAa(aa){
// 这额aa就是过滤器传入的参数
}
}
传2个参数
//html
{{aa | filterAa(bb)}}
//js
filters:{...
yekong
4年前 (2021-01-11)
喜欢
Electron
Electron允许web程序员用Javascript、HTML、CSS来编写运行于Windows、macOS、Linux跨平台的桌面应用
环境安装Node.js
node.js下载最新稳定版本
安装Electron
npm install -g electro...
yekong
4年前 (2021-01-09)
喜欢
var num = -10;
var num2 = Math.abs(num);
...
yekong
4年前 (2021-01-08)
喜欢
html
<popup-picker @on-change="myChange($event,something)"></popup-picker>
js
methods:{
myChange(val,something){
...
yekong
4年前 (2021-01-03)
喜欢
editor.customConfig.linkCheck = function(text, link) {
if (link != "") {
var reg = /(http|ftp|https):\/\/[\w\-_]...
yekong
4年前 (2021-01-03)
喜欢
editor.customConfig.customUploadImg = (files, insert) => {
for (var i = 0; i < files.length; i++) {
var formD...
yekong
4年前 (2021-01-03)
喜欢
vue监听页面大小变化
mounted: function () {
window.addEventListener('resize', this.getHeight)
},
beforeRouteLeave(to, from, next) {
...
yekong
4年前 (2020-12-30)
喜欢