End
摘要: 本文地址 JavaScript 循环 迭代 遍历 let array = [1, "string", false]; for for (let i = 0; i < array.length; i++) { console.log(array[i]) } while let i = 0 while 阅读全文
posted @ 2016-12-13 17:55 白乾涛 阅读(1539) 评论(0) 推荐(0)
摘要: 本文地址 TypeScript 函数参数 函数重载 可选参数 可选参数使用问号标识 ?,可选参数必须跟在必需参数后面。 function buildName(firstName: string, lastName?: string): string { return firstName + "-" 阅读全文
posted @ 2016-12-13 15:05 白乾涛 阅读(6962) 评论(0) 推荐(0)