Log in

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

Auteur:neo yang Tijd:2023/06/27 Lezen: 7422

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

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

$(function(){})

这样如果遇到如下问题

uncaught typeerror: $ is not a function

可以换个写法

jQuery(function($){})

tags:


copyright © www.lyustu.com alle rechten voorbehouden.
Thema: TheMoon V3.0. Auteur: neo yang