typescript学习-变量声明
摘要:
/** * 块作用域 */ function f(input: boolean) { let a = 100; if (input) { let b = a + 1; return b; } // return b; [ts] Cannot find name 'b' } /** * 重定义以及屏蔽 */ let x =... 阅读全文
posted @ 2017-11-02 23:42 yellowStar1992 阅读(90) 评论(0) 推荐(0)
浙公网安备 33010602011771号