var blob = new Blob([res.data], { type: "application/octet-stream;charset=UTF-8" }); let elink = document.createElement("a"); elink.download = ' 文件名称' Read More
posted @ 2022-10-27 16:10 我的世界蹦擦擦 Views(176) Comments(0) Diggs(0) Edit
vue项目不兼容低版本42.0的火狐,本地运行项目根本不出页面,打包部署也不出页面 vue项目在42.0版本的火狐上是没办法联调的, 但是可以通过以下操作后,在打包部署到服务器上,运行出页面(因项目需要,只在42.0版本试过,其他版本不知道行不行) 1、npm安装插件 babel-polyfill Read More
posted @ 2022-05-19 17:05 我的世界蹦擦擦 Views(2153) Comments(0) Diggs(0) Edit
overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 3; // 显示几行 -webkit-box-orient: vertical; Read More
posted @ 2021-12-01 16:14 我的世界蹦擦擦 Views(401) Comments(0) Diggs(0) Edit
js表单验证我们一般这么写 this.$refs.表单名称.validate((valid) => { if(valid) {} }) 使用ts时,这么写表单验证会报错,改成下面这种就可以 let ref: any = this.$refs.表单名称 ref.validate((valid) => Read More
posted @ 2021-11-29 13:43 我的世界蹦擦擦 Views(409) Comments(0) Diggs(0) Edit
word-wrap: break-word; word-break: break-all; Read More
posted @ 2021-11-29 13:38 我的世界蹦擦擦 Views(274) Comments(0) Diggs(0) Edit
tooltip: { trigger: 'item', axisPointer: { type: "shadow", }, textStyle: { fontSize: 30, color: "#fff", }, // 自定义弹窗样式 padding: 0, backgroundColor: "tr Read More
posted @ 2021-11-19 09:32 我的世界蹦擦擦 Views(1266) Comments(0) Diggs(0) Edit
设置渐变色 color1 = new ECharts.graphic.LinearGradient(0,1,0,0,[{ offset: 0, color: "rgba(100,160,255,0.5)" }, { offset: 1, color: "#0AC8FF" }],false) colo Read More
posted @ 2021-11-19 09:30 我的世界蹦擦擦 Views(3570) Comments(0) Diggs(0) Edit
series: [ { type: 'line', areaStyle: { color: { type: 'linear', x: 0, y: 0, x2: 0, y2: 1, colorStops: [{ offset: 0, color: 'rgba(125,72,255,0.5)' }, { Read More
posted @ 2021-11-19 09:20 我的世界蹦擦擦 Views(1972) Comments(0) Diggs(0) Edit
实现效果 一、下载安装 vue-partilces npm install vue-particles --save-dev main.js import VueParticles from 'vue-particles' Vue.use(VueParticles) 二、实现效果 在需要实现粒子效果 Read More
posted @ 2021-08-23 14:06 我的世界蹦擦擦 Views(657) Comments(0) Diggs(0) Edit
未懒加载的路由 import Rou from '@/views/rou.vue' const router = new VueRouter({ routes: [ { path: '/rou', component: Rou } ] }) 懒加载 方案一: const Rou = () => im Read More
posted @ 2021-07-26 09:32 我的世界蹦擦擦 Views(76) Comments(0) Diggs(0) Edit