开发者

eclipse javascript files

开发者 https://www.devze.com 2023-02-16 05:01 出处:网络
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 un

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消