随笔分类 - TypeScript
学习typescript. 慕课网视频课程"TypeScript从零重构axios"和"Vue3.0(正式版) + TS 仿知乎专栏企业级项目"
摘要:https://coding.imooc.com/lesson/449.html#mid=52079
阅读全文
摘要:let { default: styles } = require('./video.css') interface IComponent { templateContainer: HTMLElement; init: () => void; template: () => void; handle
阅读全文
摘要:let styles = require('./popup.css') styles = styles.default interface Icomponent { tempContainer: HTMLElement; init: () => void; template: () => void;
阅读全文
摘要: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
阅读全文
摘要:let someValue: any = 'this is a string' // 类型断言方式一: let strLength: number = (<string>someValue).length // 类型断言方式二:【推荐使用这种方式】 let strLength: number = (
阅读全文

浙公网安备 33010602011771号