会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
何以平天下
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
4
5
6
7
8
9
10
11
12
···
20
下一页
2020年11月20日
vue调用子组件方法时,参数传不过去
摘要: 有可能是因为子组件方法用了 async await 子组件去掉async就好了
阅读全文
posted @ 2020-11-20 16:01 何以平天下
阅读(615)
评论(0)
推荐(0)
2020年11月12日
Echarts中X轴坐标太密集,分段显示
摘要: 在axisLabel中设置刻度间隔interval,再加上强制显示最大值showMaxLabel和最小值showMinLabel axisLabel: {//X轴文字 interval: day == 7 ? 0 : 3, showMinLabel: true, showMaxLabel: true
阅读全文
posted @ 2020-11-12 11:42 何以平天下
阅读(5968)
评论(2)
推荐(0)
2020年10月28日
使用echarts时,鼠标首次移入屏幕会闪动,全屏会出现滚动条
摘要: 原因: 在echarts图表中出现tooltip时,画布的父标签(即:echarts.init()的标签)的有时宽高都会发生变化,导致相对布局的div可能大小发生变化(画布大小却不变),导致页面闪动。 解决方法 : 在该画布的父标签(即:echarts.init()的标签)外层套一个div,设置ov
阅读全文
posted @ 2020-10-28 11:44 何以平天下
阅读(1398)
评论(2)
推荐(2)
2020年10月27日
js关于数组的操作(合并数组、添加数组、循环等)
摘要: 1. concat() 方法 concat() 方法用于连接两个或多个数组 var arr = new Array(3) arr[0] = "George" arr[1] = "John" arr[2] = "Thomas" var arr2 = new Array(3) arr2[0] = "Ja
阅读全文
posted @ 2020-10-27 15:28 何以平天下
阅读(4367)
评论(0)
推荐(0)
2020年10月23日
在vue项目中使用echarts
摘要: 1.安装echarts依赖npm install echarts --save 2.在要使用的页面引入import echarts from 'echarts'v5之后使用 import * echarts from 'echarts' 3.使用时在mounted中使用 //此时页面上的元素已经被渲
阅读全文
posted @ 2020-10-23 13:13 何以平天下
阅读(285)
评论(0)
推荐(0)
2020年10月21日
npm i安装命令中的-g -D -S的区别
摘要: -g为全局安装 -D 对模块进行局部安装,模块写入到 devDependencies 对象 用于开发阶段,开发时用到的工具等 -S 局部安装,不同的是模块写入到 dependencies对象 用于生产环境,如axios等
阅读全文
posted @ 2020-10-21 09:04 何以平天下
阅读(1064)
评论(0)
推荐(0)
2020年10月12日
SQL server中自定义排序
摘要: select * from OrderPolicyDetail order by ( case Project when 'C' then 1, when 'A' then 2, when 'D' then 3, when 'B' then 4 else '' end ) 当字段类别少时,可以利用c
阅读全文
posted @ 2020-10-12 15:52 何以平天下
阅读(442)
评论(1)
推荐(0)
2020年9月21日
安装nodejs版本模块报错notsup Unsupported platform for n
摘要: 使用npm install -g n报错 如果出现npm ERR! notsup Unsupported platform for n@6.7.0: wanted {"os":"!win32","arch":"any"} (current: {"os":"win32","arch":"x64"})
阅读全文
posted @ 2020-09-21 09:46 何以平天下
阅读(10184)
评论(0)
推荐(1)
2020年9月18日
vue项目中一些标签直接放在<template>下会报错Failed to compile with 1 errors
摘要: 原因是a标签button以及element-ui的组件不能直接放在<template>下,需要先有一个div,其他标签要放在div下
阅读全文
posted @ 2020-09-18 15:52 何以平天下
阅读(1386)
评论(0)
推荐(0)
vue中使用element-ui出现Couldn't find preset "es2015" relative to directory
摘要: 这是因为没有安装ES 标准 使用 npm install babel-preset-es2015 -d 安装之后就好了
阅读全文
posted @ 2020-09-18 15:01 何以平天下
阅读(839)
评论(0)
推荐(0)
上一页
1
···
4
5
6
7
8
9
10
11
12
···
20
下一页
公告