TypeError: $ is not a function when calling jQuery function

后端 未结 16 1843
慢半拍i
慢半拍i 2020-11-22 02:42

I have a simple jQuery script in a WordPress plugin that is using a jQuery wrapper like this:

$(document).ready(function(){

    // jQuery code is in here

}         


        
16条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-22 02:47

    What worked for me. The first library to import is the query library and right then call the jQuery.noConflict() method.

    
     
    

提交回复
热议问题