如果我在打字.ts文件,当我输入$character时,我可以做什么来获得jQuery Intellisense/autocompletion?
(我在VS 2012的一个ASP.NET MVC 3项目中工作.)
如果我在打字.ts文件,当我输入$character时,我可以做什么来获得jQuery Intellisense/autocompletion?
(我在VS 2012的一个ASP.NET MVC 3项目中工作.)
You need to add a reference to the jQuery definition at the top of your .ts
file.
/// <reference path="jquery.d.ts" />
You can find type annotations for jQuery in this sample.