## 2.0 BOOTSTRAP JS PHILOSOPHY
These are the high-level design rules which guide the development of Bootstrap's plugin apis.
---
### DATA-ATTRIBUTE API
We believe you should be able to use all plugins provided by Bootstrap purely through the markup API without writing a single line of javascript.
We acknowledge that this isn't always the most performant and sometimes it may be desirable to turn this functionality off altogether. Therefore, as of 2.0 we provide the ability to disable the data attribute API by unbinding all events on the body namespaced with `'data-api'`. This looks like this:
$('body').off('.data-api')
To target a specific plugin, just include the plugins name as a namespace along with the data-api namespace like this:
$('body').off('.alert.data-api')
---
### PROGRAMATIC API
We also believe you should be able to use all plugins provided by Bootstrap purely through the JS API.
All public APIs should be single, chainable methods, and return the collection acted upon.
$(".btn.danger").button("toggle").addClass("fat")
All methods should accept an optional options object, a string which targets a particular method, or null which initiates the default behavior:
$("#myModal").modal() // initialized with defaults
$("#myModal").modal({ keyboard: false }) // initialized with now keyboard
$("#myModal").modal('show') // initializes and invokes show immediately afterqwe2
---
### OPTIONS
Options should be sparse and add universal value. We should pick the right defaults.
All plugins should have a default object which can be modified to effect all instance's default options. The defaults object should be available via `$.fn.plugin.defaults`.
$.fn.modal.defaults = { … }
An options definition should take the following form:
*noun*: *adjective* - describes or modifies a quality of an instance
examples:
backdrop: true
keyboard: false
placement: 'top'
---
### EVENTS
All events should have an infinitive and past participle form. The infinitive is fired just before an action takes place, the past participle on completion of the action.
show | shown
hide | hidden
---
### CONSTRUCTORS
Each plugin should expose it's raw constructor on a `Constructor` property -- accessed in the following way:
$.fn.popover.Constructor
---
### DATA ACCESSOR
Each plugin stores a copy of the invoked class on an object. This class instance can be accessed directly through jQuery's data API like this:
$('[rel=popover]').data('popover') instanceof $.fn.popover.Constructor
---
### DATA ATTRIBUTES
Data attributes should take the following form:
- data-{{verb}}={{plugin}} - defines main interaction
- data-target || href^=# - defined on "control" element (if element controls an element other than self)
- data-{{noun}} - defines class instance options
examples:
// control other targets
data-toggle="modal" data-target="#foo"
data-toggle="collapse" data-target="#foo" data-parent="#bar"
// defined on element they control
data-spy="scroll"
data-dismiss="modal"
data-dismiss="alert"
data-toggle="dropdown"
data-toggle="button"
data-toggle="buttons-checkbox"
data-toggle="buttons-radio"
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
基于Hadoop开发出该系统。系统分为前台和后台两部分,前台采用 JSP 和Js编写界面和前端逻辑校验,后台开发主要采用Java语言,使用spring、bootmetro-master等Java EE开发框架,同时使用 MySQL、HDFS Java API等实现云盘用户注册功能、用户登录功能,用户在云盘主界面中对文件实现查看、上传、下载、删除以及数据分析功能。 - -------- 不懂运行,下载完可以私聊问,可远程教学 该资源内项目源码是个人的毕设,代码都测试ok,都是运行成功后才上传资源,答辩评审平均分达到96分,放心下载使用! <项目介绍> 1、该资源内项目代码都经过测试运行成功,功能ok的情况下才上传的,请放心下载使用! 2、本项目适合计算机相关专业(如计科、人工智能、通信工程、自动化、电子信息等)的在校学生、老师或者企业员工下载学习,也适合小白学习进阶,当然也可作为毕设项目、课程设计、作业、项目初期立项演示等。 3、如果基础还行,也可在此代码基础上进行修改,以实现其他功能,也可用于毕设、课设、作业等。 下载后请首先打开README.md文件(如有),仅供学习参考, 切勿用
资源推荐
资源详情
资源评论
收起资源包目录
Hadoop大数据开发案例教程与项目实战 数据云盘+源代码+文档说明 (115个子文件)
bootmetro.css 176KB
bootmetro-icons.css 72KB
_bootmetro.css 45KB
demo.css 37KB
metro-ui-dark.css 32KB
_metro-ui-dark.css 32KB
_metro-ui-light.css 31KB
metro-ui-light.css 24KB
bootmetro-responsive.css 23KB
bootmetro-ui-light.css 22KB
bootmetro-ui-light.css 22KB
select2.css 19KB
datepicker.css 16KB
docs.css 15KB
site.css 5KB
prettify.css 817B
IcoMoon.eot 173KB
opensans-bold-webfont.eot 20KB
opensans-semibold-webfont.eot 20KB
opensans-regular-webfont.eot 19KB
opensans-light-webfont.eot 19KB
progress-indeterminate-ring-dark.gif 31KB
progress-indeterminate-ring-light.gif 31KB
progress-indeterminate-ring-light-small.gif 17KB
progress-indeterminate-ring-dark-small.gif 17KB
progress-indeterminate-dark.gif 6KB
progress-indeterminate-light.gif 6KB
.gitignore 439B
favicon.ico 1KB
UploadServlet.java 4KB
LoginServlet.java 2KB
HdfsDao.java 2KB
RegisterServlet.java 2KB
UserDAO.java 2KB
DeleteFileServlet.java 2KB
DownloadServlet.java 1KB
UserBean.java 759B
ConnDB.java 522B
sample-1.jpg 151KB
sample-3.jpg 142KB
bootstrap-mdo-sfmoma-01.jpg 127KB
sample-2.jpg 118KB
bkg-2.jpg 110KB
bootstrap-mdo-sfmoma-02.jpg 82KB
bkg-win8.jpg 69KB
bkg-parallax-1.jpg 67KB
bkg-win8-2.jpg 65KB
bootstrap-mdo-sfmoma-03.jpg 49KB
bkg-3.jpg 30KB
bkg-1.jpg 24KB
jquery-1.10.0.js 267KB
jquery-1.10.0.min.js 91KB
jquery.touchSwipe.js 66KB
bootstrap.js 60KB
select2.min.js 41KB
bootmetro-icons-ie7.js 38KB
bootstrap-datepicker.js 35KB
bootstrap.min.js 28KB
Chart.min.js 19KB
jquery-migrate-1.2.1.js 16KB
modernizr-2.6.2.min.js 15KB
mustache.js 14KB
prettify.js 13KB
holder.js 13KB
jquery.touchSwipe.min.js 10KB
perfect-scrollbar.with-mousewheel.min.js 8KB
jquery.scrollTo.js 8KB
jquery-migrate-1.2.1.min.js 7KB
bootmetro-panorama.js 7KB
demo.js 6KB
bootmetro-charms.js 4KB
bootmetro-pivot.js 4KB
jquery.mousewheel.js 4KB
docs.js 3KB
jquery.mousewheel.min.js 2KB
.jshintrc 232B
index.jsp 3KB
register.jsp 2KB
login.jsp 2KB
head.jsp 2KB
README.md 3KB
README.md 2KB
bkg-4.png 11KB
apple-touch-icon-144-precomposed.png 8KB
apple-touch-icon-114-precomposed.png 6KB
bkg-win8-turquoise.png 5KB
bkg-3.png 5KB
logo.png 5KB
apple-touch-icon-72-precomposed.png 4KB
Windows 8.png 4KB
apple-touch-icon-57-precomposed.png 3KB
favicon.png 2KB
btn-metro-donate-transparent.png 1KB
responsive-illustrations.png 1008B
tile.png 151B
sample-tiles.png 111B
icomoon.dev.svg 913KB
IcoMoon.svg 873KB
opensans-regular-webfont.svg 56KB
opensans-semibold-webfont.svg 55KB
共 115 条
- 1
- 2
资源评论
- m0_659623222024-01-10支持这个资源,内容详细,主要是能解决当下的问题,感谢大佬分享~
机器学习的喵
- 粉丝: 491
- 资源: 1259
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功