错误:未定义"$".[no-undef] [英] Error: ‘$’ is not defined.[no-undef]
本文介绍了错误:未定义"$".[no-undef]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想使用一些jQuery制作粘性导航栏,但出现错误
I wanna use some jQuery to make a sticky nav bar but I get the errors
ERROR: ‘$’ is not defined. [no-undef].
ERROR: ‘document ’ is not defined. [no-undef]
ERROR: ‘$’ is not defined. [no-undef].
ERROR: ‘document ’ is not defined. [no-undef]
,该代码不起作用.谁能帮助我为什么我会得到这些错误以及如何解决呢?
and the code doesn’t work. Can anybody help me why I get these errors and how to solve it?
推荐答案
您必须在网络中和脚本之前包含jquery库.
You must include jquery library in the web and before your script.
这篇关于错误:未定义"$".[no-undef]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文