2020年8月1日

摘要: 1 ts 的安装 npm instal -g typescipt 全局安装 tsc -v 查看版本 1. 手动编译ts tsc hellworld.ts 指向hellworld.ts 生成一个hellworld.js文件(hellworld.ts必须存在才能执行 tsc hellworld.ts ) 阅读全文
posted @ 2020-08-01 00:31 极地极光 阅读(182) 评论(0) 推荐(0) 编辑
 
摘要: 第一种方法使用reduce方法,通过传入的内容来确定 var arrs=['a','a','d','c','f','d','我','我','他',2,2,5,4,6,8]; function a(){ return arrs.reduce( function(prev:any,next:any){ 阅读全文
posted @ 2020-08-01 00:19 极地极光 阅读(671) 评论(0) 推荐(0) 编辑