Uncaught TypeError: undefined is not a function on loading jquery-min.js

前端 未结 13 783
北荒
北荒 2020-11-28 22:55

I\'m building a normal webpage which requires me to load about five CSS files and ten Javascript files.

  • When loading them separately in the HTML page, my webpa
13条回答
  •  Happy的楠姐
    2020-11-28 23:50

    Assuming this problem still has not be resolved, a lot of individual files don't end their code with a semicolon. Most jQuery scripts end with (jQuery) and you need to have (jQuery);.

    As separate files the script will load just fine but as one individual file you need the semicolons.

提交回复
热议问题