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 $.
时间: 2024-12-18 10:59:15