上一页 1 ··· 67 68 69 70 71 72 73 74 75 ··· 494 下一页
摘要: Command Line 1. Navigate to your home directory cd ~ 2. Make a directory call "temp" mkdir temp 3. Move into temp cd temp 4. List the idrectory conten 阅读全文
posted @ 2023-06-13 01:37 Zhentiw 阅读(87) 评论(0) 推荐(0)
摘要: DOM (Documnet Object Model) Tree: When a web page is loaded, the browser reads the HTML and builds the DOM tree. The DOM is a tree-like structure that 阅读全文
posted @ 2023-06-11 17:50 Zhentiw 阅读(30) 评论(0) 推荐(0)
摘要: normal script, without async defer: Script fetched and executed immediately, before browser continues parsing the page (It stops HTML parsing). If the 阅读全文
posted @ 2023-06-11 17:19 Zhentiw 阅读(35) 评论(0) 推荐(0)
摘要: button.addEventListener( 'click', (event) => { console.log('listener 1') queueMicrotask(() => { console.log('microtask') }) } ) button.addEventListene 阅读全文
posted @ 2023-06-02 20:59 Zhentiw 阅读(22) 评论(0) 推荐(0)
摘要: You can use getEventListeners(button)directly inside chrome devtool, but not inside application code. You can use monitorEvents(button, 'keydown'), no 阅读全文
posted @ 2023-06-02 20:51 Zhentiw 阅读(21) 评论(0) 推荐(0)
摘要: For example you have two containers running Container A: need to talk to Container B Container B, running a node application export port 1337 From con 阅读全文
posted @ 2023-05-31 20:00 Zhentiw 阅读(16) 评论(0) 推荐(0)
摘要: Three rules: There can only be one value owner There can be unlimited immutable borrows (reference) with no mutable references There can be only one m 阅读全文
posted @ 2023-05-29 14:42 Zhentiw 阅读(60) 评论(0) 推荐(0)
摘要: Difference between yieldand return returnset doneto true /** * Example 1 */ function* loggerator() { console.log("running"); yield "paused"; console.l 阅读全文
posted @ 2023-05-25 17:39 Zhentiw 阅读(12) 评论(0) 推荐(0)
摘要: On mobile device, when you open / close the keyboard, zoom in / out, it might affect the visual viewport view (the actual page content); to detect cha 阅读全文
posted @ 2023-05-24 17:53 Zhentiw 阅读(22) 评论(0) 推荐(0)
摘要: React set the ref to null in runtime. It is a limitation now for react. import { useRef } from 'react'; export const Component = () => { const ref = u 阅读全文
posted @ 2023-05-24 15:11 Zhentiw 阅读(23) 评论(0) 推荐(0)
上一页 1 ··· 67 68 69 70 71 72 73 74 75 ··· 494 下一页