Jquery will not load because it can't be found

前端 未结 3 891
被撕碎了的回忆
被撕碎了的回忆 2020-12-24 12:51

My html page don\'t works because my script is not loading. The script I\'m using is as follows:



        
相关标签:
3条回答
  • 2020-12-24 13:38

    Only posting to help anyone else who did what i did. I spent hours trying to figure out why i was getting about a 100 of these errors. I had forgot i was messing around with ngRoute and had placed <base href="/"> in my index.html. After removing it everything works again.

    0 讨论(0)
  • 2020-12-24 13:43

    I think you're testing this using an HTML file on your local file system. // with no protocol specified is assuming file:// because of this.

    0 讨论(0)
  • 2020-12-24 13:44

    You need put http:// before the URL. Try it: http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js

    0 讨论(0)
提交回复
热议问题