摘要:
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 阅读全文
摘要:
type BanType<T, E> = T extends E ? never : T; type BanDate<T> = BanType<T, Date>; function log<T>(x: BanDate<T>) { console.log() } log(new Date()) // 阅读全文
摘要:
.callmethod exits on any function, which will refer to Function.prototype.call for example: console.log.call Function.prototype.call // call Also it m 阅读全文
摘要:
The difference between document.body and document.documentElement: document.body returns the <body> elementdocument.documentElement returns the <html> 阅读全文