Eclipse development JQuery environment settings (Spket)

 

 http://www.cnblogs.com/sayo/archive/2008/10/20/1315528.html
 

First you need to install Spket. You can refer to this article of mine to install Spket.

Then configure JQuery:

1. Download the Javascript file for development from JQuery.com , as shown in the figure below, be sure to select the option in the red box. 

 2. Configure the Spket Javascript Profiles in Eclipse, as shown below:

 

1) Go in from window->Preferences...

2) Select Spket -> Javascript Profiles as shown above

3) Click New... Enter JQuery to create a new profile

4) Click Add Library, and select JQuery to create a new Library

5) Click Add File, select the JQuery file you just downloaded

6) If you want JQuery to be the default Javascript Profile, click Default. If you want to make ExtJs the default and use JQuery in a specific project like I did, follow the steps below

 3. Project specific Javascript options.

Select "Configure Project Specific Settings..." from the upper right corner of the above figure to set, select the project name in the pop-up dialog box, and then the following dialog box will pop up:

 

 Click on JQuery and make it Default. At this time, JQuery is used as the default Profile only in this project.

Then create a new Js file, you can use the code prompt function of JQuery:

 

Reprinted in: https://www.cnblogs.com/kungfupanda/p/4054175.html

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324136724&siteId=291194637