摘要:
TypeScript Playground Template All In One
TypeScript Playground 模版
阅读全文
摘要:
TypeScript & Map & Set All In One
~~ double not bitwise / 双非位运算符, 等价于 Math.floor的功能 向下取整 ✅
双非位运算符的妙用:~~undefined => 0, 可以用于处理字符串的大数相加,避免出现 parseInt(undefined) => NaN bug ❌
阅读全文
摘要:
how to fix TypeScript error 'this' implicitly has type 'any' All In One
'this' implicitly has type 'any' because it does not have a type annotation.ts(2683)
'this' 隐式具有类型 'any' 因为它没有类型注释。
阅读全文
摘要:
Vue & Error Boundary All In One
Vue 错误处理
场景:单个小 UI 组件出错, 导致整个应用无法正常使用
目的:兜底,优雅降级,健壮性
阅读全文