两个javascript文件冲突 [英] two javascript file conflicting

查看:107
本文介绍了两个javascript文件冲突的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用java脚本min文件控制Tab< script src =http://code.jquery.com/jquery-1.10.1.min.js>< / script>



和拖放文件使用< script src =js / jquery-1.4.2.min.jstype =text / javascript>< / script>



这两个java脚本冲突。哪个版本支持选项卡控件和拖放

Tab control using java script min file <script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>

and Drag and drop file using <script src="js/jquery-1.4.2.min.js" type="text/javascript"></script>

this two java script conflicting. which version support tab control and drag and drop

推荐答案

你正在寻找jQuery库,你需要两个,即jQuery Core和jQuery UI,你可以得到它们各种CDN,例如 https://developers.google.com/speed/libraries/devguide#jquery [ ^ ]

将它们放在HTML文件的head部分,如下所示:

You are looking for jQuery libraries and you will need both, i.e. jQuery Core and jQuery UI, you may get them at the various CDN, such as https://developers.google.com/speed/libraries/devguide#jquery[^]
Place them at the head section of your HTML file like this:
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.3/themes/smoothness/jquery-ui.css" />
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.3/jquery-ui.min.js"></script>
</head>



如果有疑问,请务必查看jQuery文档:

1. https://jqueryui.com/tabs/ [ ^ ]

2. https://jqueryui.com/draggable/ [ ^ ]


这篇关于两个javascript文件冲突的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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