typescript
文章平均质量分 60
typescript
啃火龙果的兔子
这个作者很懒,什么都没留下…
展开
-
vue3+ts+vite 打包报错 TS2304: Cannot find name ‘xxx‘
vue3+ts+vite 打包报错 TS2304: Cannot find name 'xxx'原创 2023-11-23 14:30:52 · 1440 阅读 · 0 评论 -
前端面试:JS中的Event Loop(事件循环)机制
前端面试:JS中的Event Loop(事件循环)机制原创 2023-07-19 10:26:30 · 192 阅读 · 0 评论 -
Vue3.2+Vite2.x+Ts项目搭建
Vue3.2+Vite2.x+Ts项目搭建原创 2022-05-24 16:15:37 · 2684 阅读 · 2 评论 -
面试:TS中type 和 interface 的区别
TS中type 和 interface 的区别原创 2023-05-23 10:17:23 · 24643 阅读 · 0 评论 -
vue-property-decorator(vue2.0+ts)
怎么使vue支持ts写法呢,我们需要用到vue-property-decorator,这个组件完全依赖于vue-class-component.首先安装: npm i -D vue-property-decorator我们来看下页面上代码展示:<template> <div> foo:{{foo}} defaultArg:{{defaultArg}} | {{countplus}} <button @click="delToCou...原创 2021-12-06 15:41:24 · 3273 阅读 · 0 评论 -
TS 错误property does not exist on type Object
在TypeScript中如果按JS的方式去获取对象属性,有时会提示形如Property 'value' does not exist on type 'Object'的错误。具体代码如下:var obj: Object = Object.create(null);obj.value = "value";//[ts] Property 'value' does not exist on type'Object'.这是因为Typescript在执行代码检查时在该对象没有定义相应属性,遇到该报错有以原创 2021-08-03 10:49:36 · 14469 阅读 · 0 评论