简体   繁体   English

JQuery-UI 选项卡适用于旧版本的 JQuery 和 JQuery-UI,但不适用于新版本

[英]JQuery-UI tabs work for old versions of JQuery and JQuery-UI, but not for new versions

In this JSFiddle , I have linked to JQuery 1.9.1 and JQuery UI 1.9.2 .在此JSFiddle 中,我已链接到JQuery 1.9.1JQuery UI 1.9.2 The tabs work perfectly.标签工作完美。

In this one , I have lined to JQuery Edge (I am assuming it to be 3.1.1 version, because that's the latest version I found and downloaded) and JQuery 1.8.9 (I have downloaded 1.12.1 version though).这一篇中,我选择了JQuery Edge (我假设它是3.1.1版本,因为这是我找到并下载的最新版本)和JQuery 1.8.9 (不过我已经下载了1.12.1版本)。

The weird thing is that in the second JSFiddle, the tabs don't work.奇怪的是,在第二个 JSFiddle 中,选项卡不起作用。 They don't appear as tabs but as lists.它们不显示为选项卡,而是显示为列表。

The problem is that I can not link to online versions, as my program must work offline as well.问题是我无法链接到在线版本,因为我的程序也必须离线工作。 I need JQuery and JQuery-UI versions whose tabs work and which can be downloaded.我需要 JQuery 和 JQuery-UI 版本,它们的选项卡可以工作并且可以下载。

The question is that how do I fix this?问题是我该如何解决这个问题? Why is this happening?为什么会这样? Can you suggest me versions of JQuery and JQuery-UI with which the tabs would work and which are available for download as well?你能给我推荐 JQuery 和 JQuery-UI 的版本,这些选项卡可以使用哪些也可以下载?

jQueryUI & jQuery compatibility: jQueryUI 和 jQuery 兼容性:

  • 1.12.1 (Stable, for jQuery1.7+) 1.12.1 (稳定,jQuery1.7+)
  • 1.11.4 (Legacy, for jQuery1.6+) 1.11.4(旧版,适用于 jQuery1.6+)
  • 1.10.4 (Legacy, for jQuery1.6+) 1.10.4(旧版,适用于 jQuery1.6+)
  • 1.9.2 (Legacy, for jQuery1.6+) 1.9.2(旧版,适用于 jQuery1.6+)

SOURCE来源

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM