摘要: 多文件合并下载 依赖于 https://github.com/feross/multistream const streams = []; for (const file of files) { streams.push(fs.createReadStream(file)); } this.ctx. 阅读全文
posted @ 2021-05-17 23:13 elimsc 阅读(862) 评论(0) 推荐(0) 编辑
摘要: 包:https://github.com/flexdinesh/react-socks 手动实现: constructor() { super(); this.state = { width: window.innerWidth, }; } componentWillMount() { window 阅读全文
posted @ 2021-05-17 22:46 elimsc 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 默认的约定只有一个,那就是所有页面都放在 pages 下面,静态资源放在 public 下面 组件中获取router信息 import { useRouter } from 'next/router'; const Page = () => { const router = useRouter(); 阅读全文
posted @ 2021-05-17 22:24 elimsc 阅读(932) 评论(0) 推荐(0) 编辑
摘要: 源自 https://www.zybuluo.com/knight/note/96093 如何插入公式 LaTeX的数学公式有两种:行中公式和独立公式。行中公式放在文中与其它文字混编,独立公式单独成行。 行中公式可以用如下两种方法表示: \(数学公式\) 或 $数学公式$ 独立公式可以用如下两种方法 阅读全文
posted @ 2021-05-17 22:06 elimsc 阅读(719) 评论(0) 推荐(0) 编辑