10 2022 档案

摘要:在我这台机器 只需将 tauri.conf.json 的 devPath 的 localhost 改成 127.0.0.1 即可 参考来源 https://github.com/tauri-apps/tauri/issues/1140 阅读全文
posted @ 2022-10-16 20:48 ifnk 阅读(369) 评论(0) 推荐(0) 编辑
摘要:html <div style={{ width: '478px', height: '361px', background: '#252a38', display: '-webkit-flex', display: 'flex', WebkitAlignItems: 'center', align 阅读全文
posted @ 2022-10-14 20:30 ifnk 阅读(98) 评论(0) 推荐(0) 编辑
摘要:zip -r ~/test.zip . -x "node_modules/*" 注意 -x 后面的引号不能缺 ,不然 忽略 不了 阅读全文
posted @ 2022-10-12 00:34 ifnk 阅读(645) 评论(0) 推荐(0) 编辑
摘要:代码如下 <div onClick={e=>{ e.stopPropagation(); }} /> 这样是能阻止冒泡的 ,e.stopPropagation(); 能正常 执行 但是下面 这样写 是不行的 <div onClick={async (e)=>{ let res = await xxx 阅读全文
posted @ 2022-10-08 21:09 ifnk 阅读(85) 评论(0) 推荐(0) 编辑
摘要: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 阅读(775) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示