TypeScript
学习 TypeScript 时,有一些关键的概念和特性是需要掌握的。以下是一些主要的内容:
TypeScript联合类型 可以选择多种类型12345678910111213141516171819function printLength(value: number | string): void { if (typeof value === "number") { console.log("Number length:", value.toString().length); } else if (typeof value === "string") { console.log("String length:", value.length); }}printLength(10); // 输出 Number length: 2printLength("Hello"); // 输出 String le ...
Hello Vue
你好啊你好啊你好啊你好啊你好啊你好啊你好啊你好啊你好啊你好啊你好啊你好啊你好啊你好啊你好啊你好啊你好啊你好啊你好啊你好啊你好啊你好啊你好啊你好啊你好啊你好啊你好啊你好啊你好啊你好啊你好啊你好啊你好啊你好
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