eclipse javascript files
i ran the code found here http://www.mkyong.com/jquery/jquery-hello-world/ but eclipse doesnt seem to run the jquery code 开发者_如何学编程? i placed the jquery.js file in all the directories found under the project name but still no luck. Where exactly should the .js file go ?
The <script> tag should go inside <head> or <body>, not in between. The behaviour is unspecified and thus browser specific (it however works fine for me on Eclipse 3.6 SR2).
As to the location of the .js file, the <script src> in the code example declares just the filename without a path, so it is supposed to be in the same path/folder as the HTML file.
加载中,请稍侯......
精彩评论