简体   繁体   English

我们可以同时使用jQueryUI和KendoUI吗?

[英]Can we use jQueryUI and KendoUI at same time?

I have php app where jQueryUI library version 1.8.4. 我有jQueryUI库版本1.8.4的PHP应用程序。 is already implemented with jquery library version 1.4.2. 已使用1.4.2版的jquery库实现。 But as per new requirements I need to implement some modules in kendo UI library. 但是根据新要求,我需要在kendo UI库中实现一些模块。 So I installed stable version of kendoUI and integrated with my code base but it was giving me some issues so I updated my jquery version to latest stable version. 所以我安装了kendoUI的稳定版本并与我的代码库集成在一起,但是这给了我一些问题,因此我将jquery版本更新为最新的稳定版本。 Since then I am having jquery object conflicts. 从那时起,我遇到了jquery对象冲突。 So I think problem is related with jqueryUI. 所以我认为问题与jqueryUI有关。

So can we use both jQueryUI and KendoUI libraries at same time in same page? 那么我们可以在同一页面中同时使用jQueryUI和KendoUI库吗?

I am getting error like this - $.sub is not a function. 我收到这样的错误-$ .sub不是函数。 kendo.data.HierarchicalDataSource is not a constructor kendo.data.HierarchicalDataSource不是构造函数

Please anyone tell me how to resolve this issue? 请任何人告诉我如何解决此问题?

@All, @所有,

Thanks for your help guys. 感谢您的帮助。 My issues gets resolved. 我的问题得到解决。 Now I have point my js to udpated CDN server jquery js, jqueryUI js and kendoUI js. 现在,我将我的js指向经过修饰的CDN服务器jquery js,jqueryUI js和kendoUI js。 By doing this I got conflicts like .live is not working and all but I have resolved them by using their alternatives. 通过这样做,我得到了诸如.live无法正常工作和所有冲突的冲突,但是我已经使用它们的替代方法解决了它们。 Thanks once again. 再次感谢。

Kendo depends on jQuery! 剑道依靠jQuery! Therefore, yes you can have both of them at the same page. 因此,是的,您可以将它们放在同一页面上。 Different versions of Kendo depends on different versions of jQuery. Kendo的不同版本取决于jQuery的不同版本。

Latest Kendo (such as 2013.1.319) works with jQuery 1.9. 最新的Kendo(例如2013.1.319)可与jQuery 1.9一起使用。 Upgrading your jQuery from 1.8.4 to 1.9 is quite fun (follow http://jquery.com/upgrade-guide/1.9/ ). 将jQuery从1.8.4升级到1.9很有趣(按照http://jquery.com/upgrade-guide/1.9/ )。 If you are using some 3rd party js plugins/libs what are based on 1.8.4 in your project you might need to upgrade them too. 如果您在项目中使用某些基于1.8.4的第三方js插件/库,则可能也需要对其进行升级。

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

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