会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
我的世界蹦擦擦
CnBlogs
Home
New Post
Contact
Admin
Subscription
2022年10月27日
前端下载文件流
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:09 我的世界蹦擦擦
Views(191)
Comments(0)
Diggs(0)
2022年5月19日
vue项目兼容火狐低版本42.0
vue项目不兼容低版本42.0的火狐,本地运行项目根本不出页面,打包部署也不出页面 vue项目在42.0版本的火狐上是没办法联调的, 但是可以通过以下操作后,在打包部署到服务器上,运行出页面(因项目需要,只在42.0版本试过,其他版本不知道行不行) 1、npm安装插件 babel-polyfill
Read More
posted @ 2022-05-19 17:05 我的世界蹦擦擦
Views(2646)
Comments(0)
Diggs(0)
2021年12月1日
div最多显示3行,超出部分显示省略号
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(473)
Comments(0)
Diggs(0)
2021年11月29日
ts使用表单验证
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(436)
Comments(0)
Diggs(0)
css设置div内容超出自动换行
word-wrap: break-word; word-break: break-all;
Read More
posted @ 2021-11-29 13:38 我的世界蹦擦擦
Views(293)
Comments(0)
Diggs(0)
2021年11月19日
echarts自定义悬浮窗样式
tooltip: { trigger: 'item', axisPointer: { type: "shadow", }, textStyle: { fontSize: 30, color: "#fff", }, // 自定义弹窗样式 padding: 0, backgroundColor: "tr
Read More
posted @ 2021-11-19 09:32 我的世界蹦擦擦
Views(1444)
Comments(0)
Diggs(0)
echarts饼图设置渐变色
设置渐变色 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(4024)
Comments(0)
Diggs(0)
echarts折线图设置渐变色
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(2161)
Comments(0)
Diggs(0)
2021年8月23日
vue-particles实现粒子特效背景
实现效果 一、下载安装 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(744)
Comments(0)
Diggs(0)
2021年7月26日
vue实现路由懒加载
未懒加载的路由 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(85)
Comments(0)
Diggs(0)
下一页
公告