为了写个小程序,正好以后入职也是要接触Typescript,先稍稍学习下基础。
+基础类型
变量 | +代码表示 | +可选项 | +备注 | +
---|---|---|---|
布尔 | +boolean | +false,true | +无 | +
数字 | +number | +0x,0b,0o | +只有浮点,支持十,十六,二,八进制 | +
字符串 | +string | ++ | (用””或者’’包裹,也可以用’’包裹,${expr}嵌入) | +
diff --git a/2019/02/08/hello-world/index.html b/2019/02/08/hello-world/index.html index 2416bc3..f10c42d 100644 --- a/2019/02/08/hello-world/index.html +++ b/2019/02/08/hello-world/index.html @@ -447,7 +447,7 @@