摘要:
Let's say on the page we have some heavy component need to be render when page load. <template> <div class="container"> <div v-for="n in 100"> <heavy- 阅读全文
摘要:
If we have multi composition functions: <template> ... </template> <script> import useEventSpace from "@/use/event-space"; import useMapping from "@/u 阅读全文
摘要:
Define a component with props and defualt props value <script setup lang="ts"> import { ref, onMounted } from 'vue' import fetchCount from '../service 阅读全文
摘要:
Virtual DOM Advantage: One of the advantages of the virtual DOM is cross-platform rendering abstraction. The virtual DOM can connect to different host 阅读全文
摘要:
When you run node.js you can run node --expose-gc index.js Which will allow you manully cleanup gc: global.gc() Map For map, it is easy to cost memory 阅读全文
摘要:
/* initial: default value of the css property, you don't need to remember what's the default value of each css property, just use initial should do th 阅读全文
摘要:
For example you have nested for loop, and from inner most for loop you want to break not just inner loop but also outmost for loop how to do that? We 阅读全文
摘要:
Notice how when we are on Google and search for Vue Mastery, when we scroll down and click on the next button, we show up at the top of the second pag 阅读全文