01 2023 档案

摘要:初学typescript,分析的不到位欢迎指正。 ecs-lite 基于 ts 实现的纯 ecs 库,可用于学习交流及 H5 游戏开发! https://gitee.com/aodazhang/ecs-lite?_from=gitee_search 文档 https://aodazhang.com/ 阅读全文
posted @ 2023-01-19 16:59 cslie 阅读(254) 评论(0) 推荐(0)
摘要:TypeScript 使用指南手册 http://www.patrickzhong.com/TypeScript/zh/reference/declaration-merging.html 阅读全文
posted @ 2023-01-19 08:52 cslie 阅读(5) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/m0_62516225/article/details/127689879 阅读全文
posted @ 2023-01-18 11:06 cslie 阅读(68) 评论(0) 推荐(0)
摘要:1. 属性或参数中使用 ?:表示该属性或参数为可选项 2. 属性或参数中使用 !:表示强制解析(告诉typescript编译器,这里一定有值),常用于vue-decorator中的@Prop 3. 变量后使用 !:表示类型推断排除null、undefined 例如 private _options! 阅读全文
posted @ 2023-01-18 11:01 cslie