会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
博客园
首页
归档
新随笔
联系
订阅
ZerlinM
新随笔
订阅
管理
上一页
1
···
13
14
15
16
17
18
19
20
21
···
30
下一页
2022年11月11日
创建React + Ts项目
摘要: ##一、安装react+ts npx create-react-app my-app --template typescript ##二、安装eslint代码检测 yarn eslint npx eslint --init eslint初始化后会出现三个项目,根据项目而定 1、使用什么样的eslin
阅读全文
posted @ 2022-11-11 16:01 ZerlinM
阅读(147)
评论(0)
推荐(0)
2022年11月10日
calc()使用方法
摘要: 在开发的过程中,常常会遇到头部高度是40px,而内容页是除去头部,占满视窗的整个高度,有时候是用js来处理,现在用css的calc是非常方便的: .container{ height: calc(100% - 40px); // 注:减号前后要有空格,否则很可能不生效!! } 注意:如果用了CSS预
阅读全文
posted @ 2022-11-10 13:50 ZerlinM
阅读(120)
评论(0)
推荐(0)
2022年11月8日
React可拖拽缩放组件react-rnd
摘要: react-rnd 是一个React 组件库,可以提供一个可调整大小与可拖拽的组件。  ###一、安装 使用 n
阅读全文
posted @ 2022-11-08 09:23 ZerlinM
阅读(5366)
评论(3)
推荐(0)
CSS鼠标样式【cursor】
摘要: cursor:hand;手型 cursor:pointer;手型 cursor:auto;由系统自动给出 cursor:crosshair;十字型 cursor:text;I字形 cursor:wait;等待 cursor:default;默认 cursor:e-resize;向右的箭头 curso
阅读全文
posted @ 2022-11-08 09:06 ZerlinM
阅读(302)
评论(0)
推荐(0)
2022年10月25日
echarts中dataZoom ,设置 handleIcon 为圆形或长方形
摘要: dataZoom 组件 用于区域缩放,先上手柄效果图:长方形和圆形的效果: 先将 handleIcon 的具体数值贴出来: dataZoom: [ { id: "dataZoomX", type: "slider", backgroundColor: "#F2F5F9", fillerColor:
阅读全文
posted @ 2022-10-25 09:31 ZerlinM
阅读(1307)
评论(0)
推荐(0)
2022年10月19日
echarts图表y轴数据设置为固定值,等间距
摘要: 如图 将Y轴 设置为固定的0% 20% 100% yAxis: { type: 'value', max: 100,//最大值 min: 0,//最小值 interval:20,//间隔 axisLine:{ show: false, lineStyle:{ color:'#d9e1e4' }, }
阅读全文
posted @ 2022-10-19 14:09 ZerlinM
阅读(1909)
评论(0)
推荐(0)
新版chrome浏览器如何去掉video播放自带的“播放速度,下载,播放进度条”等按钮
摘要: ####去掉video播放自带的“播放速度,下载”按钮 给video设置属性 controlsList=‘nodownload noplaybackrate’ <video controls src="1.mp4" controlsList="nodownload noplaybackrate"><
阅读全文
posted @ 2022-10-19 14:00 ZerlinM
阅读(2097)
评论(0)
推荐(0)
2022年10月10日
使用npm安装任何包,安装半天进度条一动不动最后超时错误
摘要: 使用npm安装任何包,安装半天进度条一动不动最后超时错误。 npm install nrm -g npm ERR! code ETIMEDOUT npm ERR! syscall connect npm ERR! errno ETIMEDOUT npm ERR! network request to
阅读全文
posted @ 2022-10-10 14:13 ZerlinM
阅读(1816)
评论(0)
推荐(0)
2022年8月22日
react异常:Can't perform a React state update on an unmounted component
摘要: Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, ca
阅读全文
posted @ 2022-08-22 16:37 ZerlinM
阅读(563)
评论(0)
推荐(0)
搜索高亮关键字
摘要: {list.map((item: any) => { const index: number = item.name.indexOf(searchValue); const beforeStr = item.name.substr(0, index); const afterStr = item.n
阅读全文
posted @ 2022-08-22 13:46 ZerlinM
阅读(25)
评论(0)
推荐(0)
上一页
1
···
13
14
15
16
17
18
19
20
21
···
30
下一页
公告