摘要:
HTMLCollection The HTMLCollection interface represents a generic collection (array-like object similar to arguments) of elements (in document order) a 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
Vue’s component architecture enables us to build our user interface into components that beautifully organize our business logic and presentation laye 阅读全文
摘要:
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 阅读全文
摘要:
📄 /composables/use-promise.js import { ref } from "@vue/composition-api"; export default function usePromise(fn) { // fn is the actual API call const 阅读全文
摘要:
Table of content Use key Feeze object Use composition function (Vue2) Use computed lazy v-model v-model 保持对象引用稳定 Use v-show instead of v-if defer keep 阅读全文
摘要:
Watch Let’s look at another simple example using our composition API. Here’s some code that has a simple search input box, uses the search text to cal 阅读全文