蓝图CSS Extjs和JQuery在同一页面,最好的方式使它们共存没有冲突 [英] Blueprint CSS Extjs and JQuery in the same page, best way to make them coexist without conflict

查看:156
本文介绍了蓝图CSS Extjs和JQuery在同一页面,最好的方式使它们共存没有冲突的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个需要引用jQuery和Blueprint和extjs的网页,我看到一些文档处理



(1)jquery和其他库和< br>
(2)extjs和其他库



我发现的文档似乎也相互矛盾,并参考旧版本的lib,所以想知道有没有人这样做,最不痛苦的路径是什么(所以这个任务不需要我很长的时间)



注意:这个网站需要支持ie6是js的东西,所以我确定这是一个相关的信息)



感谢您的帮助

解决方案

ExtJS没有使用$选择器,所以它和jQuery之间没有冲突。您实际上可以使用jQuery作为ExtJS的基础DOM操纵器,减少您所包含的JavaScript的大小。



蓝图CSS不会导致任何问题JavaScript,但可能会改变一些ExtJS的设计。解决这个问题的最简单的方法是将之前的蓝图​​CSS东西包含在ExtJS CSS中;这样,ExtJS就会覆盖所需的任何东西,而且你也没有问题。


I have a web page that needs references to jQuery and Blueprint and extjs, I ve seen some docs for dealing with

(1) jquery and other libraries and
(2) extjs and other libraries

The docs I ve found also seem to contradict each other a bit, and reference older versions of the libs, so was wondering if anyone did this and what is the least painful path ( so this task doesnt take me a looong time)

Note: this site needs to support ie6 ( this is js stuff so I m sure this is a relevant piece of info)

Thanks for your help

解决方案

ExtJS doesn't make use of the "$" selector, so there is no conflict between it and jQuery. You can actually use jQuery as the base DOM manipulator for ExtJS, cutting down on the size of the JavaScript you're including.

Blueprint CSS won't cause any issues with the JavaScript, but might change the design of some of the ExtJS stuff. The easiest way to get around this is to include the Blueprint CSS stuff before you include the ExtJS CSS; this way, ExtJS will override anything it needs, and you will have no issues.

这篇关于蓝图CSS Extjs和JQuery在同一页面,最好的方式使它们共存没有冲突的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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