上一页 1 2 3 4 5 6 7 ··· 92 下一页
摘要: //接口: 通常情况下,接⼝中只会包含属性和⽅法的声明,⽽不包含具体的实现细节,具体的细节由其实现类完成 interface Person9 { id: number; name: string; age: number; introduce(): void; } //实现类中,需要包含接⼝属性的赋 阅读全文
posted @ 2024-04-30 14:10 yub4by 阅读(28) 评论(0) 推荐(0)
摘要: class Person { //实例属性 id: number; name: string; age: number = 18; //构造函数 constructor(id: number, name: string) { this.id = id; this.name = name; } //实 阅读全文
posted @ 2024-04-30 14:09 yub4by 阅读(36) 评论(0) 推荐(0)
摘要: console.log('hi ts'); //声明变量 let a: number = 10; //声明常量 const b: number = 20; // 类型推断:如果⼀个变量或常量的声明包含了初始值,TS便可以根据初始值进⾏类型推断,此时可以不显式指定其类型 let c = 60; con 阅读全文
posted @ 2024-04-30 13:53 yub4by 阅读(54) 评论(0) 推荐(0)
摘要: nvm off // 禁用 Node.js 版本管理(不卸载任何东西) nvm on // 启用 Node.js 版本管理 nvm v || nvm version // 查看 nvm 版本 nvm use <version> // 切换使用指定的版本 node nvm ls // 列出所有安装的版 阅读全文
posted @ 2024-04-08 09:42 yub4by 阅读(125) 评论(0) 推荐(0)
摘要: 1. 监听器 https://www.cnblogs.com/elnimo/p/15641367.html CommandLineRunner https://blog.csdn.net/qq_34531925/article/details/82527066 https://www.cnblogs 阅读全文
posted @ 2023-12-07 11:03 yub4by 阅读(21) 评论(0) 推荐(0)
摘要: 使用 Chrome 浏览器 59 或更高版本chrome://settings/help 进入待截图的网页 按下 F12 快捷键(或鼠标右键 >> 审查元素),调出 Web 开发者工具 按下 Ctrl + Shift + P 快捷键,调出指令执行界面 输入 Capture full size scr 阅读全文
posted @ 2023-09-19 15:04 yub4by 阅读(279) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/ChineseSoftware/article/details/118413481 https://blog.csdn.net/m0_56199142/article/details/132176400 https://blog.csdn.net/qq_5 阅读全文
posted @ 2023-09-14 14:03 yub4by 阅读(19) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/weixin_42446001/article/details/110135937 阅读全文
posted @ 2023-09-14 13:53 yub4by 阅读(247) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/qq_31016939/article/details/131363158 https://blog.csdn.net/moshowgame/article/details/82869151 https://blog.csdn.net/u013154103 阅读全文
posted @ 2023-09-14 08:56 yub4by 阅读(28) 评论(0) 推荐(0)
摘要: 参考 https://blog.csdn.net/qq_42372017/article/details/121192445 1. 单例模式的四大原则 构造方法私有 以静态方法或者枚举返回实例 多线程环境下都是访问同一个实例 反序列化时不会重新构建对象 2. 单例模式通常有5种实现方法 2-1 饿汉 阅读全文
posted @ 2023-09-12 15:35 yub4by 阅读(96) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 92 下一页