登录

jQuery的问题:juncaught typeerror: $ is not a function

作者:neo yang 时间:2023/06/27 读: 7420

js的问题,都是异步的问题。

wordpress对各种js的加载也是按一定的顺序的。wordpress基本上是先加载本身的js,然后再加载自己定义的js。

$(function(){})

这样如果遇到如下问题

uncaught typeerror: $ is not a function

可以换个写法

jQuery(function($){})

标签:


copyright © www.lyustu.com all rights reserve.
Theme: TheMoon V3.0. Author:neo yang