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 $.
如果您认为这篇文章节省你不少时间,您可以通过右边的“赞助”功能 赏我一杯咖啡,也可以点击右下角的【好文要顶】按钮点个赞,因为这两种支持都是我继续分享的最大动力!
声明:原创博客请在转载时保留原文链接或者在文章开头加上本人博客地址,如发现错误,欢迎批评指正,如有特殊需求请与本人联系!

浙公网安备 33010602011771号