上一页 1 2 3 4 5 6 ··· 12 下一页
摘要: 现在有个需求 ,我想要使用 react 选择上传文件,获取文件路径 在浏览器里面调用 ant design 的 upload 组件是做不到的,只能获取文件名 由于浏览器的安全限制,无法获取文件的完整路径。如果需要获取文件的完整路径,可以考虑使用 Electron 等桌面应用程序开发框架,或者使用 A 阅读全文
posted @ 2023-07-10 11:09 ifnk 阅读(29) 评论(0) 推荐(0) 编辑
摘要: linux 下 ping -f 1000 baidu.com 可以ping 多次 而不是 一秒一次 go ping 库 这么弄的话有个 interval 选项 代码如下 func main() { now := time.Now() pinger, err := ping.NewPinger("ba 阅读全文
posted @ 2023-02-09 19:13 ifnk 阅读(65) 评论(0) 推荐(0) 编辑
摘要: 首先创建 cra 项目 如果报错 说 最新的 create-react-app 版本是 5.x ,而你的是 4.x 的话 需要 先卸载 ,再重新安装 sudo npm uninstall -g create-react-app sudo npm install -g create-react-app 阅读全文
posted @ 2023-02-01 14:29 ifnk 阅读(110) 评论(0) 推荐(0) 编辑
摘要: interface ColumnDetails { [key: string]: string } const data = useMemo<ColumnDetails[]>( () => [ { col1: 'Hello', col2: 'World', }, { col1: 'react-tab 阅读全文
posted @ 2023-01-20 18:00 ifnk 阅读(51) 评论(0) 推荐(0) 编辑
摘要: 原来的代码 binary.read invalid type *interface func NewBusiness() *PacketBusiness { var dict = make(map[uint32]interface{}) //dict[model.EventMCUUDPTBarPus 阅读全文
posted @ 2023-01-14 21:20 ifnk 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 关掉 严格模式 参考 https://juejin.cn/post/7165538295567351839 阅读全文
posted @ 2023-01-11 20:24 ifnk 阅读(73) 评论(0) 推荐(0) 编辑
摘要: xml长这样 <ModifyKeys> <ModifyKey VKCode="91">LWin</ModifyKey> <ModifyKey VKCode="92">RWin</ModifyKey> <ModifyKey VKCode="16">Shift</ModifyKey> <ModifyKe 阅读全文
posted @ 2023-01-09 21:36 ifnk 阅读(332) 评论(0) 推荐(0) 编辑
摘要: 比如我自己的某些配置文件,不想被git 跟踪 可以 git add . 跟踪所有文件 然后再 git rm --cached 文件名 或者 git rm -r --cached 文件夹 来取消跟踪 文件/夹 阅读全文
posted @ 2023-01-09 10:46 ifnk 阅读(279) 评论(0) 推荐(0) 编辑
摘要: go 在起来以后 ,他的时区是固定的,比如是北京的时区, 这个时候改成 东京的时区,系统时间已经变化了, 但是go 的时区还是原来北京的 所以造成系统时间和go time.now 时间不一致 ,要获取准确的时间的话,还是要调用 powershell 来获取系统时间,这样是最准确的 修改系统时区 这个 阅读全文
posted @ 2022-12-16 18:07 ifnk 阅读(367) 评论(0) 推荐(0) 编辑
摘要: 比如 smartKeys 这个单词 按 c-w 扩选,想先扩选 smart 再扩选 smartKeys 可以在设置中开启 use "CamelHumps" words 即可 阅读全文
posted @ 2022-12-08 08:30 ifnk 阅读(160) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 12 下一页