会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
ifnk
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
···
12
下一页
2022年11月19日
vue2 echarts 报错 mounted Initialize failed: invalid dom. 的一种解决方法
摘要: 如题 参考 了 https://blog.csdn.net/weixin_52418790/article/details/123690752 但是还是不行, 后来 发现 我这个 是 在 element ui 的模态框 里面 写的,但是模态框还没有显示呢, 这个 组件就加载 了, 怀疑 和这个有关
阅读全文
posted @ 2022-11-19 22:11 ifnk
阅读(272)
评论(0)
推荐(0)
2022年11月9日
ssh 忽略 know_host 的方法
摘要: 场景 现在有一个arm 的板卡,ssh 又旧 又残 ,不能用 公钥免密登录 ,所以使用 了 sshpass 但是 arm 的板卡 一重启 ,他的 认证 就变了 ,导致 我们ssh 会报 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
阅读全文
posted @ 2022-11-09 16:35 ifnk
阅读(1831)
评论(0)
推荐(0)
别的电脑ssh win10 免密登录的方法
摘要: 首先要在win10 里面 把可选功能 的 openssh server 钩上, 然后 在 win+r 输入 services.msc 打开服务 重启openssh server 服务 然后使用管理员 打开powershell ,输入 Notepad C:\ProgramData\ssh\sshd_c
阅读全文
posted @ 2022-11-09 16:03 ifnk
阅读(446)
评论(0)
推荐(0)
vmware 下的archlinux 如何 和 win10宿主机 共享文件夹
摘要: 首先 在 vmware 下设置 共享文件夹 然后 在命令行输入 命令 vmhgfs-fuse -o allow_other -o auto_unmount .host:/share ~/win10_share -o max_write=61440 其中 max_write 不加的话, 你复制 文件
阅读全文
posted @ 2022-11-09 11:12 ifnk
阅读(503)
评论(0)
推荐(0)
2022年10月16日
archlinux + i3wm 使用 tauri 开发者模式 (react + ts) 预览白屏 解决方法
摘要: 在我这台机器 只需将 tauri.conf.json 的 devPath 的 localhost 改成 127.0.0.1 即可 参考来源 https://github.com/tauri-apps/tauri/issues/1140
阅读全文
posted @ 2022-10-16 20:48 ifnk
阅读(473)
评论(0)
推荐(0)
2022年10月14日
css 图片 等比缩放
摘要: html <div style={{ width: '478px', height: '361px', background: '#252a38', display: '-webkit-flex', display: 'flex', WebkitAlignItems: 'center', align
阅读全文
posted @ 2022-10-14 20:30 ifnk
阅读(111)
评论(0)
推荐(0)
2022年10月12日
linux zip 压缩命令 忽略 文件夹
摘要: zip -r ~/test.zip . -x "node_modules/*" 注意 -x 后面的引号不能缺 ,不然 忽略 不了
阅读全文
posted @ 2022-10-12 00:34 ifnk
阅读(683)
评论(0)
推荐(0)
2022年10月8日
react e.stopPropagation() 前调用 await 耗时操作 的坑
摘要: 代码如下 <div onClick={e=>{ e.stopPropagation(); }} /> 这样是能阻止冒泡的 ,e.stopPropagation(); 能正常 执行 但是下面 这样写 是不行的 <div onClick={async (e)=>{ let res = await xxx
阅读全文
posted @ 2022-10-08 21:09 ifnk
阅读(97)
评论(0)
推荐(0)
js 数组 异步的坑 map ,forEach ,some,every
摘要: forEach 数组里面 forEach 如果带 await 的话,里面 是并行的 [1,2,3].forEach(async (x) => { await xxx(x) }) 这里面 1 2 3 是 会同时被 xxx 函数处理的 想要并行的话,得写成这样 for (const x of [1, 2
阅读全文
posted @ 2022-10-08 09:16 ifnk
阅读(815)
评论(0)
推荐(0)
2022年9月30日
js 根据 base64 和图片 宽高 ,截取参数 裁减图片 并且返回 处理后的 base64 图片
摘要: 参考来源 https://stackoverflow.com/questions/31193418/html5-canvas-todataurl-returns-blank https://www.geeksforgeeks.org/how-to-crop-images-in-reactjs/ ht
阅读全文
posted @ 2022-09-30 15:01 ifnk
阅读(454)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
···
12
下一页
公告