上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 494 下一页
摘要: 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 阅读(22) 评论(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 阅读(18) 评论(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 阅读(20) 评论(0) 推荐(0)
摘要: In this lesson, we will be learning how to mock REST API calls. Mocking is a technique used in software testing to simulate the behavior of objects or 阅读全文
posted @ 2024-11-30 01:59 Zhentiw 阅读(23) 评论(0) 推荐(0)
摘要: Snapshots In this lesson, we will learn about a testing technique called Snapshot testing. Snapshot testing allows you to take a “snapshot” of the exp 阅读全文
posted @ 2024-11-30 01:52 Zhentiw 阅读(32) 评论(0) 推荐(0)
摘要: Building our component To focus on testing, I’ve already built our component. You can copy the code for the component below or from the GitHub reposit 阅读全文
posted @ 2024-11-30 01:48 Zhentiw 阅读(13) 评论(0) 推荐(0)
摘要: Vue’s component architecture enables us to build our user interface into components that beautifully organize our business logic and presentation laye 阅读全文
posted @ 2024-11-29 20:31 Zhentiw 阅读(61) 评论(0) 推荐(0)
摘要: When we code up Vue apps we use API calls a lot to load in back-end data. When we are waiting for this API data to load, it’s a good user interface pr 阅读全文
posted @ 2024-11-29 20:26 Zhentiw 阅读(56) 评论(0) 推荐(0)
摘要: 📄 /composables/use-promise.js import { ref } from "@vue/composition-api"; export default function usePromise(fn) { // fn is the actual API call const 阅读全文
posted @ 2024-11-29 20:22 Zhentiw 阅读(8) 评论(0) 推荐(0)
摘要: == 从上到下按照规则比较,直到能够得到确切结果为止:1. 两端存在 NaN,返回 false2. undefined 和 null 只有与自身比较,或者互相比较时,才会返回 true,和其他原始类型比较返回 false3. 两端类型相同,比较值4. 两端都是原始类型,转换成数字重新比较 5. 一端 阅读全文
posted @ 2024-11-29 15:32 Zhentiw 阅读(21) 评论(0) 推荐(0)
上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 494 下一页