First, Spket needs to be installed. I won't go into details here.
Then perform JQuery configuration:
1. Download the Javascript file for development from JQuery.com, as shown in the figure below, be sure to select the options in the red box.
2. Configure Spket Javascript Profiles in Eclipse , as shown in the figure below:
1) From window->Preferences...
2) Select Spket as shown in the above picture -> Javascript Profiles
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 to 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 like me and use JQuery in a specific project, then follow the steps below
3. Project specific Javascript options .
Select "Configure Project Specific Settings..." from the upper right corner of the above picture to set it up, select the project name in the pop-up dialog box, and then the following dialog box will pop up:
Click JQuery and make it a Default. At this time, JQuery is only used as the default profile in this project.
Then create a new Js file and you can use JQuery's code prompt function: