ericasun的Hexo博客

  • Home
  • About
  • Tags
  • Categories
  • Archives
  • Search
  • Table of Contents
  • Overview
  1. 1. 一、泛型
    1. 1.1. 1、泛型定义
    2. 1.2. 2、interface
    3. 1.3. 3、return数组
    4. 1.4. 4、加尖括号
    5. 1.5. 5、泛型类
  2. 2. 二、泛型约束
    1. 2.1. 1、泛型约束

ericasun

28 posts
4 categories
14 tags
GitHub E-Mail

TS 泛型的使用

Posted on 2024-03-21 Edited on 2024-03-23 In Front-end Views:

一、泛型

泛型用一个东西来表示广泛类型

1、泛型定义

泛型定义

2、interface

interface

3、return数组

return数组

4、加尖括号

加尖括号

5、泛型类

泛型类

二、泛型约束

1、泛型约束

泛型约束


# front-end # typescript
Vue 中的 .sync 修饰符作用
简述computed和watch的区别
© 2025 ericasun
Powered by Hexo & NexT.Gemini
0%