如何在C#母版页中使用多个jquery文件 [英] How to use more than one jquery file in C# Master Page

查看:66
本文介绍了如何在C#母版页中使用多个jquery文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



在我的网站中,之前我有太多的母版页,每个母版页都有自己的jquery引用,现在我将它作为一个母版页,将所有引用都放在一个母版页中.问题每个人都使用了不同版本的jquery文件,因此,即使删除了一个jquery引用,该页面也无法正常工作,所以我无法在母版页中使用一个jquery文件.

这是场景,现在我的问题是

在登录之前,我已经使用了Slideup和slidedown jQuery弹出效果,可以在创建的母版页的所有页面中看到该效果,但是登录同一母版页后,却没有显示Slideup和Slidedown效果.

我已经尽力解决了这个问题,例如仅为该JS文件创建单独的文件夹,根据版本对Jquery引用进行了排序.我在不同的文件夹路径中有太多的jquery.js版本和太多的jquery.min.js版本,所有版本都在一个母版页中引用

吃了我的时间,请帮忙

在此先感谢

Hi,

In my website, earlier I had too many master pages and each one had its own jquery references now I made it as one master page having all the references in one master page. Problem each one have used difference version of jquery file so I could not use one single jquery file in my masterpage if I remove even one jquery reference the page is not working.

This is the scenario, Now my problem is

I have used Slideup and slidedown jquery popup effect, before logging in I could see the effect in all the pages with the master page that I have created, but after logging in the same master page is not showing the Slideup and slidedown effects.

I have tried all my best to overcome this problem like Create separate folder for that JS file alone, Ordered the Jquery references based on the Version. I have too many jquery.js versions and too many jquery.min.js versions in different folder paths and all are referred in one single master page

It is eating my time please help

Thanks in advance

推荐答案



发生这种情况是因为jquery冲突,仅使用一个最新的jquery文件.在更新的版本中,以前版本中包含的所有功能.

祝你好运
快乐编码
:)
Hi,

This is happen because of jquery conflict use only one latest Jquery file. in updated version all the function included from previous version.

best Luck
Happy Coding
:)


这篇关于如何在C#母版页中使用多个jquery文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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