$(document).ready(function(){ Uncaught ReferenceError: $ is not defined

后端 未结 8 1470
南笙
南笙 2021-02-06 23:43

Hi I am having a \"Uncaught ReferenceError: $ is not defined\" while using bellow codes

I am currently getting the following error in my log. I have been looking at the

8条回答
  •  暖寄归人
    2021-02-07 00:26

    No need to use jQuery.noConflict and all

    Try this instead:

    // Replace line no. 87 (guessing from your chrome console) to the following
    
    jQuery(document).ready(function($){
    
    // All your code using $
    
    });
    

    If you still get error at line 87, like Uncaught reference error: jQuery is not defined, then you need to include jQuery file before using it, for which you can check the above answers

提交回复
热议问题