10 2022 档案
摘要:在我这台机器 只需将 tauri.conf.json 的 devPath 的 localhost 改成 127.0.0.1 即可 参考来源 https://github.com/tauri-apps/tauri/issues/1140
阅读全文
摘要:html <div style={{ width: '478px', height: '361px', background: '#252a38', display: '-webkit-flex', display: 'flex', WebkitAlignItems: 'center', align
阅读全文
摘要:zip -r ~/test.zip . -x "node_modules/*" 注意 -x 后面的引号不能缺 ,不然 忽略 不了
阅读全文
摘要:代码如下 <div onClick={e=>{ e.stopPropagation(); }} /> 这样是能阻止冒泡的 ,e.stopPropagation(); 能正常 执行 但是下面 这样写 是不行的 <div onClick={async (e)=>{ let res = await xxx
阅读全文
摘要:forEach 数组里面 forEach 如果带 await 的话,里面 是并行的 [1,2,3].forEach(async (x) => { await xxx(x) }) 这里面 1 2 3 是 会同时被 xxx 函数处理的 想要并行的话,得写成这样 for (const x of [1, 2
阅读全文