Please install the Spket plugin as follows in Spring Tool Suite when you want to write jQuery (自动补全,语法高亮)
(1) Use link 方式 to install the spket plugin under \\192.168.0.238\Canton\Software\Eclipse_Plugins
(2) In preference ->Spket->Javascript Profiles ,create a profile as follows:
(3) Then add the jQuery library when you click “Add Library” button on the right
(4) Then choose the jquery.js from your local disk as follows:
(5) Set the File Association ,you choose “*.js” ,then bind with “Spket JavaScript Editor” and set it to default.
(6) Then ,you can use the auto complete function in your java script source file as follows:
本文转自 charles_wang888 51CTO博客,原文链接:http://blog.51cto.com/supercharles888/834397,如需转载请自行联系原作者