在Web应用程序上同时运行两个版本的(twitter)引导程序 [英] having two versions of (twitter) bootstrap running simultaneously on a web application

查看:81
本文介绍了在Web应用程序上同时运行两个版本的(twitter)引导程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前已经开始尝试使用bootstrap和angularjs进行客户端开发.我已经被赋予一项任务,以使我们的网站(一个angularjs应用程序)或多或少地处于隔离状态,并且一直在努力,但是我发现我学到的引导程序功能无法正常工作.

I have currently started trying my hand at client side development with bootstrap and angularjs. I've been given a task to make a more or less isolated feature of our website (an angularjs application) and have been working on it but noticed that the bootstrap functions I learned were not working.

经检查,我发现我们的应用程序正在使用bootstrap 2.3.x,并且我想使用bootstrap 3.0的功能

Upon inspection I found that our app is using bootstrap 2.3.x and I want to use features of bootstrap 3.0

由于引导程序对其新版本进行了相当大的更改,因此主要的Web应用程序编码人员不希望切换,因此这不是一个选择. (至少还没有).

Because bootstrap has made quite a huge change in its new version, the main web app coders do not want to switch over so that is not an option. (at least not yet).

我的问题:有没有办法让我的孤立视图使用bootstrap 3,而应用程序的其余部分使用bootstrap 2?我真的不想花时间学习过时的技术,所以任何建议都将不胜感激.

My question: is there a way I could have my isolated view use bootstrap 3 while the rest of the app uses bootstrap 2? I really don't want to take the time to learn deprecated technology so any advice would be greatly appreciated.

推荐答案

如果您要在网站上创建隔离的功能,该功能是否会嵌入其中一个页面中,或者是其本身的一部分?如果脚本链接仅位于应用程序页面的标题中,而不添加到站点的其他页面中,则您的应用程序页面可以使用bootstrap 3.x,而不会在其他页面上引起问题.该链接不会将Bootstrap 3.x泄漏到标头中没有这些脚本标签的先前代码.如果是这样,您可以继续使用bootstrap 3.x和angular.js,并且应该没有问题.

If you are creating an isolated feature on your site, will it be embed in one of the pages or is it a section in its own right? Your app pages can use bootstrap 3.x without it causing problems on other pages if the script links are only in the header of your app pages and not added to other pages in the site. The link will not leak bootstrap 3.x to previous code that does not have these script tags in the header. If that is the case, you can go ahead and use bootstrap 3.x and angular.js and should have no issues.

我会将您的应用粘贴到网站上的单独文件夹中,并使用最新的工具进行设计.

I would stick your app in a separate folder on the website and design away with the more up-to-date tools.

这篇关于在Web应用程序上同时运行两个版本的(twitter)引导程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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