随笔分类 -  TypeScript

学习typescript. 慕课网视频课程"TypeScript从零重构axios"和"Vue3.0(正式版) + TS 仿知乎专栏企业级项目"
摘要:https://coding.imooc.com/lesson/449.html#mid=52079 阅读全文
posted @ 2024-06-13 17:46 ladybug7 阅读(45) 评论(0) 推荐(0)
摘要:let { default: styles } = require('./video.css') interface IComponent { templateContainer: HTMLElement; init: () => void; template: () => void; handle 阅读全文
posted @ 2020-12-13 09:27 ladybug7 阅读(1326) 评论(0) 推荐(0)
摘要:let styles = require('./popup.css') styles = styles.default interface Icomponent { tempContainer: HTMLElement; init: () => void; template: () => void; 阅读全文
posted @ 2020-12-13 09:25 ladybug7 阅读(373) 评论(0) 推荐(0)
摘要:。。。 阅读全文
posted @ 2020-12-04 22:39 ladybug7 阅读(55) 评论(0) 推荐(0)
摘要:for (var i = 0; i < 10; i++) { setTimeout(function() { console.log(i) }, 10) } 输出10个10 for (var i = 0; i < 10; i++) { (function(i){ setTimeout(functio 阅读全文
posted @ 2020-12-04 22:25 ladybug7 阅读(76) 评论(0) 推荐(0)
摘要:let someValue: any = 'this is a string' // 类型断言方式一: let strLength: number = (<string>someValue).length // 类型断言方式二:【推荐使用这种方式】 let strLength: number = ( 阅读全文
posted @ 2020-12-04 22:06 ladybug7 阅读(187) 评论(0) 推荐(0)