上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 31 下一页
摘要: 如图 将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 阅读(2010) 评论(0) 推荐(0)
摘要: ####去掉video播放自带的“播放速度,下载”按钮 给video设置属性 controlsList=‘nodownload noplaybackrate’ <video controls src="1.mp4" controlsList="nodownload noplaybackrate">< 阅读全文
posted @ 2022-10-19 14:00 ZerlinM 阅读(2245) 评论(0) 推荐(0)
摘要: 使用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 阅读(1939) 评论(0) 推荐(0)
摘要: 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 阅读(594) 评论(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 阅读(46) 评论(0) 推荐(0)
摘要: // 兼容ios底部安全距离 .fixBottom { width: 100%; height: constant(safe-area-inset-bottom); /* 兼容 IOS<11.2 */ height: env(safe-area-inset-bottom); /* 兼容 IOS>11 阅读全文
posted @ 2022-08-22 11:57 ZerlinM 阅读(115) 评论(0) 推荐(0)
摘要: 我之前在Mac下用命令ssh-keygen生成密钥,并且安全起见为密钥设置了密码,这样导致后来每次我git push时,都要输入一次密码: Enter pass phrase for /Users/zhaohd/.ssh/id_rsa: 用着太麻烦,我想把它去掉,去网上查了查,发现ssh-keyge 阅读全文
posted @ 2021-08-28 13:00 ZerlinM 阅读(1793) 评论(0) 推荐(0)
摘要: 在h5页面中,因为要从h5页面跳转到小程序页面,所以就要引入微信的jssdk, 前提动态引入微信的jssdk: // 动态加载js脚本文件 h5跳转小程序 还需要加载一个微信的jssdk const script = document.createElement('script') script.t 阅读全文
posted @ 2021-07-17 15:39 ZerlinM 阅读(1251) 评论(0) 推荐(0)
摘要: 当按钮比较小的时候,为了使用体验,我们会扩大点击热区,实现代码如下: (我们用react代码举例,其他的大同小异。) jsx: ``` {...doSomething}}>显示 { // doSomething... }} /> ``` css ``` .btn { width: 24rpx; he 阅读全文
posted @ 2021-06-11 18:26 ZerlinM 阅读(271) 评论(0) 推荐(0)
摘要: 动画场景: 让一个圆形图框让它转动起来。当然如果单纯这样做很简单,声明一个keyframe,控制transform: rotate(deg)属性从0到360度变化。然后在animation中使用这个keyframe就可以了。 在这个基础上再要求: 增加动画的暂停和重新播放功能。 这样的话又该如何实现 阅读全文
posted @ 2021-04-30 14:45 ZerlinM 阅读(1525) 评论(0) 推荐(0)
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 31 下一页