Use Typescript in asp.net MVC project.

1. create an empty web project.

2. add a index.html file.

3. open nuget browser, and enter tag:typescript. choose jquery.typescript.definitelytyped and install it.

4. then in project folder/ scripts/typings/jquery/jquery.d.ts file will appear.

5. drag and drop the jquery.d.ts file in index.ts file. then we can use jquery schema such as $.

posted @ 2017-05-24 21:59  小搬码工  阅读(225)  评论(0编辑  收藏  举报