ts学习1-基础类型
基础类型string123let str:string = 'hello'let str2:string = `${str} world`console.log(str2)
输出hello world
number123456789101112let num:number = 114514let num2:number = NaNlet num3:number = Infinitylet num4:number = 0o11let num5:number = 0x11let num6:number = 0b11console.log(num)console.log(num2)console.log(num3)console.log(num4)console.log(num5)console.log(num6)
输出
123456114514NaNInfinity9173
boolean1234let flag:boolean = truelet flag2:boolean = Boolean(0)console.log(flag)conso ...
Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick StartCreate a new post1$ hexo new "My New Post"
More info: Writing
Run server1$ hexo server
More info: Server
Generate static files1$ hexo generate
More info: Generating
Deploy to remote sites1$ hexo deploy
More info: Deployment