ts的作用:给原生js添加静态类型的检查; ts与es6一样无法被浏览器直接读取,只能通过编译, https://create-react-app.dev/docs/adding-typescript/ 关于tsconfig文件: