首页
沸点
课程
数据标注
HOT
AI Coding
更多
直播
活动
APP
插件
直播
活动
APP
插件
搜索历史
清空
创作者中心
写文章
发沸点
写笔记
写代码
草稿箱
创作灵感
查看更多
登录
注册
TypeScript
前端马国成
创建于2026-02-19
订阅专栏
TypeScript
暂无订阅
共7篇文章
创建于2026-02-19
订阅专栏
默认顺序
默认顺序
最早发布
最新发布
TypeScript基本知识(5)
命名空间#### 命名空间 ```js // 命名空间的用法 嵌套 抽离 导出 简化 合并 // namespace 命名空间所有的变量以及方法必须要导出才能访问 namespace Person
TypeScript基本知识(6)
混入 类装饰器se = (name: string) => { const fn: ClassDecorator = (target) => { console.log(target)
TypeScript基本知识(7)
```js //Partial和Required用法 interface User { address: string age: string name: string } type PartialU
TypeScript基本知识(1)
1.环境准备 npm i typescript -g tsc -init tsc -w // 监听 node index.js 2.基本类型 3.object类型 4.interface 函数 联合类
TypeScript基本知识(2)
Class implements类型约束 private 只能在自己内部使用,字类也不能调用,也不允许在外部调用 let dom = new Dom() dom.render 也不行 protecte
TypeScript基本知识(4)
泛型(动态类型)e AA<T> = string | number | T // let a:A<boolean> = 1 let aa:AA<Boolean> = true interface
TypeScript基本知识(3)
生成器 迭代器onst each = (value: any) => { let It: any = value[Symbol.iterator]() let next: any =