Fork me on github
1 2 3 4 5 ··· 20 下一页
摘要: 执行四个耗时任务,对比效果 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" / 阅读全文
posted @ 2024-09-05 15:41 zjy4fun 阅读(7) 评论(0) 推荐(0) 编辑
摘要: ref: https://github.com/zjy4fun/web-worker 分别使用主线程和 worker 线程处理一个耗时计算,看看对主线程上的 UI 渲染有什么影响 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8 阅读全文
posted @ 2024-09-05 15:28 zjy4fun 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 将 remote 由 ssh 切换到 https 阅读全文
posted @ 2024-08-31 20:11 zjy4fun 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 重点在怎么将 Windows 上的端口服务转发到WSL2 1. 查看 WSL2 的 ip wsl hostname -I 得到 172.29.172.238 2. 使用管理员权限打开 powershell 配置端口转发 netsh interface portproxy add v4tov4 lis 阅读全文
posted @ 2024-07-22 23:09 zjy4fun 阅读(44) 评论(0) 推荐(0) 编辑
摘要: // TODO 二分法查bug git bisec 查看某个 hash 对应的文件修改 git show [hash] [path-to-file] 阅读全文
posted @ 2024-07-09 19:37 zjy4fun 阅读(13) 评论(0) 推荐(0) 编辑
摘要: sudo apt-get -o Acquire::http::proxy="http://127.0.0.1:7890/" update 阅读全文
posted @ 2024-06-30 03:10 zjy4fun 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 主要是安装python2 参考 https://github.com/meteor/meteor/issues/12777#issuecomment-1717641240 阅读全文
posted @ 2024-05-13 22:33 zjy4fun 阅读(78) 评论(0) 推荐(0) 编辑
摘要: https://github.com/zjy4fun/react-fc-order import React, { useEffect, useState } from 'react' import './App.css' function App() { const [count, setCoun 阅读全文
posted @ 2024-04-04 19:37 zjy4fun 阅读(30) 评论(0) 推荐(0) 编辑
摘要: 把 dev 分支上多个提交记录合并成一个提交记录,这样你就可以在自己的分支上瞎几把高频率提交了🤣 git merge --squash dev git commit -m "合并 dev 分支上的多个提交记录" 阅读全文
posted @ 2023-12-29 22:02 zjy4fun 阅读(29) 评论(0) 推荐(0) 编辑
摘要: expo 官网 https://expo.dev/ https://github.com/expo/expo 用于简便移动端开发 快速创建项目 npx create-expo-app my-app . ├── App.js ├── app.json ├── assets ├── babel.conf 阅读全文
posted @ 2023-12-17 05:04 zjy4fun 阅读(88) 评论(0) 推荐(0) 编辑
1 2 3 4 5 ··· 20 下一页