12 2024 档案

摘要:检查规则 这节课我们主要学习 ESLint 里面的规则相关的知识。规则是 ESLint 中一个比较重要的核心概念之一,因为究竟报不报错,是由规则来确定的。 规则的重要性 在 ESLint 中,本身可以配置规则的重要性,总共分为三个级别: off 或者 0: 关闭这条规则 warn 或者 1:这条规则 阅读全文
posted @ 2024-12-26 14:59 Zhentiw 阅读(21) 评论(0) 推荐(0) 编辑
摘要:Make an HTML table more readable on mobile devices by using the ::before pseudo-element. We add labels to each cell, so they appear like cards when th 阅读全文
posted @ 2024-12-23 16:30 Zhentiw 阅读(11) 评论(0) 推荐(0) 编辑
摘要:It's fairly trivial to create a React project, but there's always a big hurdle between creating it locally and making it shareable so that someone els 阅读全文
posted @ 2024-12-23 16:10 Zhentiw 阅读(7) 评论(0) 推荐(0) 编辑
摘要:Validating at form level Now that we know how to validate a single input field in our forms, let’s take it a step further and learn how to set up our 阅读全文
posted @ 2024-12-21 19:47 Zhentiw 阅读(14) 评论(0) 推荐(0) 编辑
摘要:Appropriate types In HTML we have a wide variety of input elements to craft our forms, but one element in particular rules them all. The catch-all inp 阅读全文
posted @ 2024-12-21 19:39 Zhentiw 阅读(9) 评论(0) 推荐(0) 编辑
摘要:The Input is Different than the Output We've reached the point with Zod where our input is different than our output. In other words, you can generate 阅读全文
posted @ 2024-12-21 19:19 Zhentiw 阅读(5) 评论(0) 推荐(0) 编辑
摘要:In this lesson, you'll learn how to implement smooth state transitions in your web applications using the browser's built-in View Transitions API. We' 阅读全文
posted @ 2024-12-09 15:49 Zhentiw 阅读(6) 评论(0) 推荐(0) 编辑
摘要:var a = { n: 1 }; var b = a; a.x = a = { n: 2 }; console.log(a.x); // undefined console.log(b.x); // {n: 2} Javascript see the following code, mainly 阅读全文
posted @ 2024-12-09 15:17 Zhentiw 阅读(3) 评论(0) 推荐(0) 编辑
摘要:ABT SDK Design The entire ABT SDK includes numerous APIs and tools to support application development, including: ABTCore: Provides the core functiona 阅读全文
posted @ 2024-12-07 04:12 Zhentiw 阅读(26) 评论(0) 推荐(0) 编辑
摘要:How to Control Requests? Controlling requests involves addressing several key issues: 1. How to Maximize Bandwidth Utilization In chunked uploads, a l 阅读全文
posted @ 2024-12-05 03:20 Zhentiw 阅读(13) 评论(0) 推荐(0) 编辑
摘要:Code design SDK has 3 layers: Upload Protocol: Defines the communication format between the frontend and backendt upload-core: Protocol-based API that 阅读全文
posted @ 2024-12-05 03:20 Zhentiw 阅读(6) 评论(0) 推荐(0) 编辑
摘要:How to coordinate frontend and backend? File upload involves interaction between the frontend and backend, requiring the establishment of a standard c 阅读全文
posted @ 2024-12-05 03:20 Zhentiw 阅读(4) 评论(0) 推荐(0) 编辑
摘要:Background Our SaaS platform includes the upload of large files such as company information and meeting videos. Without special handling, the followin 阅读全文
posted @ 2024-12-05 03:18 Zhentiw 阅读(7) 评论(0) 推荐(0) 编辑
摘要:We have a RadioGroupcomponent, when the prop verticalis true, we want all the Radiowrap with div, otherwise wrap with span. <template> <component v-fo 阅读全文
posted @ 2024-12-04 15:14 Zhentiw 阅读(6) 评论(0) 推荐(0) 编辑
摘要:Write big number // NOT 100000 // Better 100_000 1e5 Shorthands syntax for floating number // Normal 0.123 // The same .123 // eX also apply to floati 阅读全文
posted @ 2024-12-03 16:59 Zhentiw 阅读(4) 评论(0) 推荐(0) 编辑
摘要:<template> <label v-if="label">{{ label }}</label> <select class="field" :value="modelValue" v-bind="{ ...$attrs, onChange: ($event) => { $emit('updat 阅读全文
posted @ 2024-12-03 15:30 Zhentiw 阅读(6) 评论(0) 推荐(0) 编辑
摘要:<style> .red {color: red;} .green {color: green;} </style> <div id="app"></div> <script> function h(tag, props, children) { return { tag, props, child 阅读全文
posted @ 2024-12-03 15:08 Zhentiw 阅读(3) 评论(0) 推荐(0) 编辑
摘要:Example 1 Before function addEvent(ele, eventName, handler) { if (ele.addEventListener) { ele.addEventListener(eventName, handler); } else if (ele.att 阅读全文
posted @ 2024-12-03 03:33 Zhentiw 阅读(5) 评论(0) 推荐(0) 编辑
摘要:let _globalThis: any export const getGlobalThis = (): any => { return ( _globalThis || (_globalThis = typeof globalThis !== 'undefined' ? globalThis : 阅读全文
posted @ 2024-12-02 15:05 Zhentiw 阅读(5) 评论(0) 推荐(0) 编辑
摘要:Introduction One of the first things that Vue developers often learn is the magic of using v-bind and v-on to supercharge their HTML with dynamic bind 阅读全文
posted @ 2024-12-02 01:57 Zhentiw 阅读(18) 评论(0) 推荐(0) 编辑
摘要:Introduction Slots allow developers to have the flexibility to provide content to a child component, but what happens when the child component has con 阅读全文
posted @ 2024-12-02 01:52 Zhentiw 阅读(15) 评论(0) 推荐(0) 编辑
摘要:Defining default content for a slot In the event that your component has content that works as a good default, this can be accomplished by defining th 阅读全文
posted @ 2024-12-02 01:40 Zhentiw 阅读(7) 评论(0) 推荐(0) 编辑
摘要:The Shortcomings of Most Prop Definitions In the last lesson, we learned how to create props that were well documented and helped to prevent common bu 阅读全文
posted @ 2024-12-02 01:27 Zhentiw 阅读(15) 评论(0) 推荐(0) 编辑
摘要:Mutating State Here’s where Pinia gets a bit… controversial. Pinia allows us to mutate state in a variety of ways, letting us decide where and when we 阅读全文
posted @ 2024-12-02 01:14 Zhentiw 阅读(16) 评论(0) 推荐(0) 编辑
摘要:When company's API become huge and always changing, if request-busis maintained by developers manually, it's not only time consuming but also error pr 阅读全文
posted @ 2024-12-01 18:57 Zhentiw 阅读(8) 评论(0) 推荐(0) 编辑
摘要:Idempotency is a mathematical concept often abstracted as: f(n) = 1n, no matter what's the value of n, f(n) alwayhs equals 1 In network requests, many 阅读全文
posted @ 2024-12-01 17:42 Zhentiw 阅读(3) 评论(0) 推荐(0) 编辑
摘要:Usage of a cached request: const req = createCacheRequestor(); req.get('/a') // request req.get('/a') // use cache req.get('/b') // request req.get('/ 阅读全文
posted @ 2024-12-01 17:32 Zhentiw 阅读(6) 评论(0) 推荐(0) 编辑
摘要:Three layers design Low level implementation Layer: using low level implementation to complete basic operation. For the network request, we can use th 阅读全文
posted @ 2024-12-01 17:14 Zhentiw 阅读(4) 评论(0) 推荐(0) 编辑
摘要:Identifying the containing block The process for identifying the containing block depends entirely on the value of the element's position property: If 阅读全文
posted @ 2024-12-01 16:58 Zhentiw 阅读(5) 评论(0) 推荐(0) 编辑
摘要:HTMLCollection The HTMLCollection interface represents a generic collection (array-like object similar to arguments) of elements (in document order) a 阅读全文
posted @ 2024-12-01 16:45 Zhentiw 阅读(5) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示