百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
B

bootstrap-without-jquery

> 编程语言
开源

不使用 jQuery 的 Twitter Bootstrap

196 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

不使用 jQuery 的 Twitter Bootstrap

#Bootstrap without jQuery

** Note: This is no longer maintained. For a more up-to-date version please take a look at bootstrap.native

Introduction

A lightweight script to replace jQuery for simple interactions when using Twitter Bootstrap.

Bootstrap requires jQuery for some components such as dropdowns, alerts and the little "hamburger" icon that triggers a collapsible menu. While jQuery is an excellent cross-browser framework, it can be overkill if it's only used for displaying and hiding things. Of course, if a project already uses jQuery then there's no problem, but if not here's a script to replace jQuery and some of the Bootstrap plugin scripts. Using this should reduce download size and speed up loading time for your users.

Coverage

Bootstrap 2 and 3

  • Collapsible elements (e.g. "hamburger" menu icon)
  • Dismissable alert boxes
  • Dropdown menus

Demo

You can see the script in action in these simple demos:

  • Bootstrap 3 demo
  • Bootstrap 2 demo

Dependencies

  • Twitter Bootstrap
  • JavaScript turned on - no other libraries required.

Browser support

Bootstrap 2 version so far tested in the following browsers. (Bootstrap 3 testing is on the todo list)

Works

  • Android 2.3
  • Android 4.1
  • Chrome 26
  • Firefox 20
  • Firefox Mobile 20
  • Internet Explorer 8, 9 & 10
  • iOS 3
  • Kindle 3
  • Opera 12.15
  • Opera Mini 7.5
  • Opera Mobile 12.10

Doesn't work

  • Nintendo DS/DSi
  • Nintendo Wii

Notes

  • Alert close is intermittent in Android 2.3
  • In Chrome, onblur doesn't fire when attached to button elements. This affects the dropdown menus so please use a elements instead for these.

I'd really appreciate a quick comment on whether it works in your browser or not.

License

Licensed under the MIT license.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

JavaScript

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言