上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 494 下一页
摘要: For example, we have following code doing AST transform from templateAST to Javascript AST function traverseNode(ast) { const currentNode = ast; // If 阅读全文
posted @ 2025-06-26 13:50 Zhentiw 阅读(13) 评论(0) 推荐(0)
摘要: const template = "<p>Vue</p>"; const State = { initial: 1, // init state tagOpen: 2, tagName: 3, text: 4, tagEnd: 5, tagEndName: 6, }; function isAlph 阅读全文
posted @ 2025-06-25 13:15 Zhentiw 阅读(10) 评论(0) 推荐(0)
摘要: https://risingstars.js.org/2024/en 2024 年最流行,最火热的项目排名 shadcnui:This is NOT a component library. It's a collection of re-usable components that you can 阅读全文
posted @ 2025-06-23 22:57 Zhentiw 阅读(174) 评论(0) 推荐(0)
摘要: 从上到下按照规则比较,直到能得到确切结果为止: 两端类型相同,比较值 两端存在 NaN,返回 false undefined 和 null 只有与自身比较,或者互相比时,才会返回 true 两端都是原始类型,转换成数字比较 一端是原始类型,一端是对象类型,把对象转换成原始类型后进入第 1 步 对象如 阅读全文
posted @ 2025-06-23 02:35 Zhentiw 阅读(7) 评论(0) 推荐(0)
摘要: You’re seeing that const scores = {} satisfies Record<string,number> does check at compile-time “hey, {} can be a Record<string,number>”, but it doesn 阅读全文
posted @ 2025-06-23 02:31 Zhentiw 阅读(9) 评论(0) 推荐(0)
摘要: In Vue 3’s reactivity engine (as of v3.5), globalVersion is a single, ever‐incrementing counter that bumps whenever any reactive value changes. Each c 阅读全文
posted @ 2025-06-23 02:26 Zhentiw 阅读(9) 评论(0) 推荐(0)
摘要: For example when you open a overlay to play video, and you want to disable background page scrolling playBtn.onclick = function() { // ... video.play( 阅读全文
posted @ 2025-06-23 02:24 Zhentiw 阅读(12) 评论(0) 推荐(0)
摘要: https://developer.mozilla.org/en-US/docs/Web/API/Encrypted_Media_Extensions_API 1. Video screenshot blocking when you render video through a DRM‐prote 阅读全文
posted @ 2025-06-23 02:18 Zhentiw 阅读(27) 评论(0) 推荐(0)
摘要: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/try function fetchData() { if (Math.random() < 0.5) throw new 阅读全文
posted @ 2025-06-23 02:10 Zhentiw 阅读(10) 评论(0) 推荐(0)
摘要: export const enum ShapeFlags { ELEMENT = 1, FUNCTIONAL_COMPONENT = 1 << 1, //2 STATEFUL_COMPONENT = 1 << 2, //4 TEXT_CHILDREN = 1 << 3, //8 ARRAY_CHIL 阅读全文
posted @ 2025-06-13 14:26 Zhentiw 阅读(15) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 494 下一页