Enabling jQuery Intellisense inside JavaScript file in Webmatrix

后端 未结 1 685
别跟我提以往
别跟我提以往 2020-12-18 12:13

I have done the following in WebMatrix.

I imported jQuery inside my HTML page with documentation of jQuery and successfully enabled jQuery intellisense inside the HT

相关标签:
1条回答
  • 2020-12-18 12:19

    Usually, in Visual Studio you can use reference directive in the beginning of the file. It will include a script file in the scripting context of the current script file. And IntelliSense will be enabled. Since WebMatrix is microsoft as well, I believe this should work too:

    /// <reference path="JS/jquery-2.1.0.js" />
    /// <reference path="JS/jquery-2.1.0-vsdoc.js" />
    

    if path attribute won't work, try file attribute.

    http://yadi.sk/d/Szhp8tOJNLXYu example

    0 讨论(0)
提交回复
热议问题