asp.net主页中的jquery [英] jquery in asp.net masterpage

查看:79
本文介绍了asp.net主页中的jquery的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的网站上使用了一个普通的主页,并且在我的webforms jQuery中工作正常.此后,我使用jquery在主页中添加了一些滑动菜单.然后,当我删除jquery时,我的webforms jQuery不起作用.从我的母版页开始,然后再次执行webforms jquery..我该怎么办....

解决方案

您是什么意思?您是否正在加载两种版本的jquery,一种在母版页中,一种在表单中?从表单中删除该库,它位于母版页中.一旦加载了jquery库,对jquery方法的任何调用都不应停止jquery的工作,但是,如果一个javascript调用失败,则javascript可以在整个页面上停止.使用Chrome,右键单击页面并选择检查元素",然后您可以转到最后一个标签,它将告诉您是否存在JavaScript错误,这将使您的jquery代码无法正常工作.

Hi, i was using a normal masterpage in my website.And in my webforms jquery was working successfully.After that i added some sliding menus in my masterpage using jquery.Then that my webforms jquery is not working.when i remove jquery from my masterpage,then again webforms jquery works..what should i do ....

解决方案

What do you mean ? Are you loading two versions of jquery, one in the master page and one in the form ? Remove the library from the form, it''s in the masterpage. Once you''ve loaded the jquery library, no call to jquery methods should stop jquery working, but, if one javascript call fails, javascript can stop on the whole page. Use Chrome, right click on your page and choose ''inspect element'', then you can go to the last tab and it will tell you if there was a javascript error, which will have stopped your jquery code from working.


这篇关于asp.net主页中的jquery的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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