如何解决jQuery未定义? [英] How to solve jQuery is undefined?

查看:309
本文介绍了如何解决jQuery未定义?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尊敬的先生,


Dear sir,


I have 2 jquery files.(these files contains image animation showing code)

-> this files access in site master page, but i need to show particular page thats content page. 

no error display this content page

-> but other than this page i will move jQuery is ''Undefined'' like that message  is displayed...

 how to solve this problem. 

推荐答案

请按照以下步骤操作:
1.将JQuery库添加到您的项目中.
2.将您的JQuery文件链接到aspx页面.
3.请记住,在编写脚本或链接脚本文件之前,您的jquery应该被初始化.像这样:



Follow the steps:
1. Add the JQuery library to your project.
2. Link your JQuery file to your aspx page.
3. Remember, before writing script or linking script file your jquery should be initialize. like this:



<script src="JS/jquery-1.7.2.js" type="text/javascript"></script>
<script src="JS/JScript.js" type="text/javascript"></script>



这里 [



Download the latest jQuery library from here[^].


--Amit


在jquery中使用以下语法将帮助您解决问题.

jquery.noconflict();
Use below syntax in you jquery it will help you to resolve your problem.

jquery.noconflict();


这篇关于如何解决jQuery未定义?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆