摘要: import { Platform } from'ionic-angular'; import {AppConfig} from'./app-config'; import {DefaultLoaing} from'./ui/default-loading'; exportclasscommonFn 阅读全文
posted @ 2017-08-31 17:07 alan-alan 阅读(906) 评论(0) 推荐(0) 编辑
摘要: import { Component } from '@angular/core'; import { Platform } from 'ionic-angular'; // Component,Platform // @Component({ // template: ` // // // Tabs // // // ... 阅读全文
posted @ 2017-08-31 13:58 alan-alan 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 1.编译器 2.数据结构 Node: 抽象语法树(AST)的基本组成块。 SourceFile: 给定源文件的AST Program: SourceFile的集合和一系列编译选项代表一个编译单元。 Symbol: 具名的声明。 Type: Type是语义系统的其它部分。Type可能被命名(比如,类和 阅读全文
posted @ 2017-08-31 13:31 alan-alan 阅读(283) 评论(0) 推荐(0) 编辑
摘要: class Greeter { greeting: string; constructor(message: string) { this.greeting = message; } greet() { return "Hello, " + this.greeting; } } let greeter = new Gree... 阅读全文
posted @ 2017-08-31 12:13 alan-alan 阅读(199) 评论(0) 推荐(0) 编辑
摘要: interface SquareConfig { color?: string; width?: number; } interface Point { readonly x: number; readonly y: number; } let a: number[] = [1, 2, 3, 4]; let ro: ReadonlyArray = a; // ro... 阅读全文
posted @ 2017-08-31 11:37 alan-alan 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 小心作用域规则 小心解构 块级作用域的时间死区 const变量声明原则 阅读全文
posted @ 2017-08-31 11:06 alan-alan 阅读(4508) 评论(0) 推荐(0) 编辑
摘要: let isDone: boolean = false; let decLiteral: number = 6; let name: string = "bob"; name = "smith"; let list: number[] = [1, 2, 3]; // Declare a tuple type let x: [string, number]; // Initialize it... 阅读全文
posted @ 2017-08-31 10:37 alan-alan 阅读(190) 评论(0) 推荐(0) 编辑