开发
jQuery的问题:juncaught typeerror: $ is not a function
解决jQuery常见错误'Uncaught TypeError: $ is not a function'的完整指南,包括原因分析和多种解决方案
· 1 分钟阅读
解决jQuery常见错误'Uncaught TypeError: $ is not a function'的完整指南,包括原因分析和多种解决方案
js的问题,都是异步的问题。
wordpress对各种js的加载也是按一定的顺序的。wordpress基本上是先加载本身的js,然后再加载自己定义的js。
$(function(){})
这样如果遇到如下问题
uncaught typeerror: $ is not a function
可以换个写法
jQuery(function($){})