TypeError: jQuery(…).ready(…) is not a function

前端 未结 5 1610
忘了有多久
忘了有多久 2021-01-17 07:36

OK, I know this has been asked before but none of the answers seems to apply to my case. I\'m trying to get a very tiny piece of jQuery running (I\'m just getting started on

5条回答
  •  时光说笑
    2021-01-17 08:12

    Passing jquery object this way works for me.

    $(document).ready(function () {
        console.log("jquery");
    }(jQuery));
    

提交回复
热议问题