摘要:
how to encapsulate second time of ui components For example we have follow code, with one UI component MyInput // App.vue <template> <div> <MyInput></ 阅读全文
摘要:
Eliminate the ambiguity of the function What ambiguity means? Normally a function can do two things 1. Instruction sequence 2. Contruction function a( 阅读全文
摘要:
We often see circular dependency, why it's a problem, why we should avoid it and hwo to avoid it? Let's see any example first // main.js import A from 阅读全文
摘要:
function observe(obj) { for (const key in obj) { let internalValue = obj[key]; const funs = new Set() Object.defineProperty(obj, key, { configurable: 阅读全文
摘要:
Let's say we have a Vue application that renders many heavy components on the first load. The problem we're facing is a long white screen period while 阅读全文
摘要:
In a production environment, we want to prompt the user with a message when new scripts are available, asking New scripts are available. Do you want t 阅读全文