上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 494 下一页
摘要: monorepo工程基本格式 pnpm-workspace.yaml 指定工程管理目录 packages: - "packages/**" 这里配置之后,我们在安装第三方包的时候,就需要指定安装参数,如果是全局安装,就需要指定-w或者--workspace-root 安装全局第三方包 注意:为了ts 阅读全文
posted @ 2025-06-11 14:04 Zhentiw 阅读(76) 评论(0) 推荐(0)
摘要: Greedy approach: function LIS(nums) { if (nums.length 0) return []; // 先取得第一项 const results = [[nums[0]]]; for (let i = 1; i < nums.length; i++) { con 阅读全文
posted @ 2025-06-10 13:42 Zhentiw 阅读(17) 评论(0) 推荐(0)
摘要: 概述 JavaScript 中所有位运算都会先将操作数通过 ToInt32 转为 32 位有符号整数(补码),再按位进行计算。常用于标志位管理、快速取整、高效色彩处理等场景。 常见运算符 运算符 名称 说明 & 按位与 两位都为 1 时,结果为 1 | 按位或 任一位为 1 时,结果为 1 ^ 按位 阅读全文
posted @ 2025-06-08 15:52 Zhentiw 阅读(23) 评论(0) 推荐(0)
摘要: Manually staging files, writing commit messages, committing, and syncing to Git involves multiple repetitive steps. This lesson demonstrates how to si 阅读全文
posted @ 2025-06-06 02:45 Zhentiw 阅读(39) 评论(0) 推荐(0)
摘要: In development we often want to test out features we are building but can only do so with deployed or staging applications or setting up Ngrok or Clou 阅读全文
posted @ 2025-06-06 02:41 Zhentiw 阅读(10) 评论(0) 推荐(0)
摘要: Planning complex application logic or workflows before coding can be challenging. This lesson demonstrates how to leverage Cursor's AI (Chat and Agent 阅读全文
posted @ 2025-06-06 02:38 Zhentiw 阅读(190) 评论(0) 推荐(0)
摘要: Writing clear and effective prompts or rules for AI (.mdc files in Cursor) can be tricky. Your instructions might start out clumsy or ambiguous, leadi 阅读全文
posted @ 2025-06-06 02:33 Zhentiw 阅读(43) 评论(0) 推荐(0)
摘要: We have new Arrayin Javascript const arr1 = new Array(3) // create an empty array with lengh 3 const arr2 = new Array(1,2,3) // create an array with v 阅读全文
posted @ 2025-06-02 14:06 Zhentiw 阅读(13) 评论(0) 推荐(0)
摘要: It can be a performance bottleneck if you frequently add/remove event listener bind to a DOM element. patchProps(el, key, prevValue, nextValue) { if ( 阅读全文
posted @ 2025-05-29 15:15 Zhentiw 阅读(7) 评论(0) 推荐(0)
摘要: Brwoser support: https://caniuse.com/?search=%3Ahas <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="widt 阅读全文
posted @ 2025-05-27 19:43 Zhentiw 阅读(10) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 494 下一页