
typescript
jjw_zyfx
仅当做个人笔记使用
展开
-
typescript 装饰器用法
【代码】typescript 装饰器用法。原创 2023-01-17 16:54:09 · 1332 阅读 · 0 评论 -
parcel typescript使用教程
【代码】parcel typescript使用教程。原创 2023-01-09 22:11:09 · 287 阅读 · 0 评论 -
ts中的联合类型和类型保护--- as、in、typeof、instanceof、enum、keyof
ts中的联合类型和类型保护--- as、in、typeof、instanceof。enum原创 2023-01-08 22:14:43 · 1906 阅读 · 0 评论 -
tsconfig.json文件中的内容解释
noImplicitAny”: true, 开启它并注释掉strict则不写类型时默认为any类型则必须写成any类型,如果是false则不写类型也可以。“allowJs”: true, 表示如果js文件中的格式不符合target设置的格式时也一起编译为target要求的格式。“outDir”: “./js”, 表示将ts文件转换为对应的js文件后输出到当前目录的一个叫js的目录中。“target”: “es2016”,表示编译后的js文件是符合js的es2016格式的。原创 2023-01-08 20:56:59 · 613 阅读 · 0 评论 -
element ts vue 中的表单验证出现红色波浪线的解决方法
原创 2021-06-12 15:37:46 · 1052 阅读 · 0 评论 -
vue ts element 下的表单验证包括深层验证
代码如下<template> <div> <div class="common-wrapper"> <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm"> <el-form-item label="活动时间" required> <el原创 2021-06-12 11:27:59 · 454 阅读 · 0 评论 -
vue ts [Vue warn]: Error in nextTick: “TypeError: Cannot read property ‘key‘ of undefined“
[Vue warn]: Error in nextTick: "TypeError: Cannot set property 'zIndex' of undefined"完整错误如下:解决方法:原创 2021-06-04 11:28:58 · 1306 阅读 · 2 评论 -
Vue ts 中的@watch,@ prop的用法
完整的请看下边这个GitHub中的https://github.com/kaorun343/vue-property-decorator#Prophttps://blog.youkuaiyun.com/MCQq123321/article/details/84100961原创 2021-05-25 17:22:57 · 1680 阅读 · 0 评论 -
typescript 中的泛型、命名空间
【代码】typescript 中的泛型、命名空间。原创 2021-05-25 16:54:35 · 93 阅读 · 0 评论 -
typescript 中的函数重载
原创 2021-05-25 16:54:57 · 680 阅读 · 0 评论 -
typescript 中函数的完整写法
面试题:前端中除了使用typeof判断类型还可以使用那种方法判断类型原创 2021-05-25 16:55:10 · 97 阅读 · 0 评论 -
typescript中的抽象类
下边这一种的基本不用原创 2021-05-25 16:55:19 · 76 阅读 · 0 评论 -
typescript 中的静态成员、单例设计模式
【代码】typescript 中的静态成员、单例设计模式。原创 2021-05-25 16:55:34 · 229 阅读 · 0 评论 -
typescript 中的get set 存取器
原创 2021-05-25 16:55:42 · 259 阅读 · 0 评论 -
typescript 中的 readonly修饰符
原创 2021-05-24 22:46:19 · 932 阅读 · 0 评论 -
typescript 中的类的修饰符 private,protect,public、constructor
typescript 中的类的修饰符 private,protect,public、constructor原创 2021-05-24 22:26:17 · 331 阅读 · 0 评论 -
typescript 中的多态
下边这个才是多态原创 2021-05-24 22:15:54 · 265 阅读 · 0 评论 -
typescript 中的继承
原创 2021-05-24 22:07:30 · 176 阅读 · 0 评论 -
typescript 中的类
原创 2021-05-24 22:01:22 · 76 阅读 · 0 评论 -
typescript 类类型、函数类型
总结:接口和接口之间叫继承(使用关键字extends)类和接口之间叫实现(使用的是implements)原创 2021-05-24 21:55:46 · 90 阅读 · 0 评论 -
typescript中的接口和type
暂时没看出俩啥区别,效果是一样的 一般用interface。直接传递和间接传递的区别。原创 2021-05-24 21:39:46 · 95 阅读 · 0 评论 -
ts 中函数的用法
.ts文件中也可以这样用原创 2021-05-24 20:50:30 · 505 阅读 · 0 评论 -
vue 中ts使用
1、首先2、运行自动编译配置原创 2021-05-24 20:33:13 · 571 阅读 · 0 评论