使用多个jquery-ui版本 [英] using multiple jquery-ui versions

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

问题描述

我们必须使用jQuery UI的网站,其中一个网站包含来自其他网站的一些部分。这些部分是基于Jquery UI Accordion构建的,但是我无法加载两个版本的UI。一个是1.8.11的自定义版本,另一个是完整版本(完全不会加载)

We have to sites using jQuery UI and one of the sites includes some pieces from the other site. Those pieces are build on Jquery UI Accordion but I can't get both versions of the UI to load. One is a custom build of 1.8.11 the other is a full version (the full won't load)

任何建议?

推荐答案

请阅读JQUERY UI上的文档。您不能使用两个版本的UI而不为每个版本指定一个CONTEXT。

Please read the documentation on JQUERY UI. You cannot use two versions of the UI without specifying a CONTEXT for each one.

这允许您在一个页面上使用多个UI。例如。

This allows you to use multiple UIs on one page for example.

坏消息是,一旦生成文件,您就无法在之后添加上下文。

The bad news is that once the file has been generated you cannot then add the context afterwards.

我不确定但是我在与UI相关的javascript文件中,有一个链接可以将您带到JQUERY UI构建页面,在那里您可以使用上下文重新生成UI。

I'm not sure but I think in the javascript files assciated with the UI there is a link that will take you to the JQUERY UI build page, and there you can regenerate the UI with a context.

这篇关于使用多个jquery-ui版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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