参考错误:找不到变量:jQuery

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/9493936/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-27 10:53:29  来源:igfitidea点击:

ReferenceError: Can't find variable: jQuery

jqueryhtml

提问by sonu

I am trying to use jgesture plugin for pinchopen and pinchclose events. but i am getting the following error:

我正在尝试将 jgesture 插件用于 pinchopen 和 pinchclose 事件。但我收到以下错误:

ReferenceError: Can't find variable: jQuery

参考错误:找不到变量:jQuery

does any one knw the solution? Thanks

有人知道解决方案吗?谢谢

采纳答案by Sid

Link to jQuery from one of the hosted locations, e.g.:

从托管位置之一链接到 jQuery,例如:

http://code.google.com/apis/libraries/devguide.html#jquery

http://code.google.com/apis/libraries/devguide.html#jquery

Or downloaded it from jquery.com and put it in your web server path and include in your HTML files.

或者从 jquery.com 下载它并将其放在您的 Web 服务器路径中并包含在您的 HTML 文件中。