随笔分类 -  前端歌谣ts-学习-2022

上一页 1 ··· 4 5 6 7 8
前端ts-学习-2022
摘要: 阅读全文
posted @ 2022-09-30 20:40 前端导师歌谣 阅读(17) 评论(0) 推荐(0) 编辑
摘要:export default {}; /* const userInfo: any = undefined; class Test { getName() { try{ return userInfo.name }catch(e) { console.log(e); } } getAge() { t 阅读全文
posted @ 2022-09-30 20:40 前端导师歌谣 阅读(15) 评论(0) 推荐(0) 编辑
摘要:初级 中级 阅读全文
posted @ 2022-09-30 20:40 前端导师歌谣 阅读(16) 评论(0) 推荐(0) 编辑
摘要:// export default {} function paramDecorator(target: any, key: string, index: number) { console.log(target); console.log(key); console.log(index); } c 阅读全文
posted @ 2022-09-30 20:40 前端导师歌谣 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-09-30 20:40 前端导师歌谣 阅读(19) 评论(0) 推荐(0) 编辑
摘要:export default {} /* function nameDecorator(target: any, key: string) { console.log(target); console.log(key); } class Test { @nameDecorator uname = " 阅读全文
posted @ 2022-09-30 20:40 前端导师歌谣 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-09-30 20:40 前端导师歌谣 阅读(12) 评论(0) 推荐(0) 编辑
摘要:export default {} function visitDecorator(target: any, key: string, descritor: PropertyDescriptor) { // console.log(target); // console.log(key); // c 阅读全文
posted @ 2022-09-30 20:40 前端导师歌谣 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-09-30 20:40 前端导师歌谣 阅读(14) 评论(0) 推荐(0) 编辑
摘要:export default {} // 普通方法: target对应的就是 prototype // 静态方法: target对应的就是 类的构造函数 function getNameDecorator(target: any, key: string, desciptor: PropertyDe 阅读全文
posted @ 2022-09-30 20:40 前端导师歌谣 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-09-30 20:40 前端导师歌谣 阅读(15) 评论(0) 推荐(0) 编辑
摘要:export default {}; /* function testDecorator(constructor: any) { constructor.prototype.uname = "张予曦"; constructor.prototype.show = ():void => { consol 阅读全文
posted @ 2022-09-30 20:40 前端导师歌谣 阅读(14) 评论(0) 推荐(0) 编辑
摘要:工厂函数 阅读全文
posted @ 2022-09-30 20:40 前端导师歌谣 阅读(9) 评论(0) 推荐(0) 编辑

上一页 1 ··· 4 5 6 7 8
点击右上角即可分享
微信分享提示