TypeScript-Learn
##学习TypeScript之前需装必要的环境.
安装node,然后使用npm安装typescript
npm install -g typescript
大致流程为,写ts代码,然后对于ts代码进行编译编译命令如下
tsc hello.ts
然后在工作目录下就会出现hello.js文件,然后将此文件引入到页面中即可。
###在具体的页面中将ts代码也进行了粘贴,但是页面都是引用的是将ts进行编译的js文件。
-
Notifications
You must be signed in to change notification settings - Fork 0
zhangxy1035/TypeScript-Learn
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
TypeScript-Learn
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published