摘要:
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 阅读全文
posted @ 2024-09-15 20:49
Zhentiw
阅读(13)
评论(0)
推荐(0)
摘要:
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 阅读全文
posted @ 2024-09-15 20:24
Zhentiw
阅读(21)
评论(0)
推荐(0)
摘要:
export const isPromiseLike = <T>(value: PromiseLike<T>) => value !== null && (typeof value 'object' || typeof value 'function') && typeof value.then ' 阅读全文
posted @ 2024-09-15 01:57
Zhentiw
阅读(9)
评论(0)
推荐(0)
摘要:
export const isAsyncFunction = (fn: Function) => fn[Symbol.toStringTag] 'AsyncFunction'; // isAsyncFunction(() => {}) // false // isAsyncFunction(() = 阅读全文
posted @ 2024-09-15 01:52
Zhentiw
阅读(9)
评论(0)
推荐(0)

浙公网安备 33010602011771号