摘要:
flex布局 <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <meta name="viewport" content="width 阅读全文
摘要:
## **贪吃蛇练习** 使用TypeScript + Webpack + Less实现贪吃蛇的例子; ### **项目依赖** TypeScript: - typescript; - ts-loader; Webpack: - webpack; - webpack-cli; - webpack-d 阅读全文
摘要:
tsconfig.json配置 { "compilerOptions": { "module": "es2015", "target": "es2015", "strict": true, "outDir": "./dist", "noEmitOnError": true }, "include": 阅读全文
摘要:
/* 1.变量类型声明和初始化 */ let a: number; // a 的类型设置为了number,在以后的使用过程中a的值只能是数字 a = 10; a = 33; // a = 'hello'; // 此行代码会报错,因为变量a的类型是number,不能赋值字符串 let b: strin 阅读全文