## 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')
---
### PROGRAMMATIC 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"
没有合适的资源?快使用搜索试试~ 我知道了~
JAVA入门项目-基于J2EE的绩效考核系统
共593个文件
gif:249个
png:88个
js:72个
2星 需积分: 50 114 下载量 106 浏览量
2017-07-12
17:35:04
上传
评论 10
收藏 4.38MB ZIP 举报
温馨提示
基于J2EE的高校绩效考核系统项目开发管理, 项目演示地址:https://v.youku.com/v_show/id_XNzI4NTk0MzI4.html
资源推荐
资源详情
资源评论
收起资源包目录
JAVA入门项目-基于J2EE的绩效考核系统 (593个子文件)
NoticeDAOImpl.class 5KB
UserDAOImpl.class 5KB
AuthImage.class 4KB
RawDataDAOImpl.class 4KB
PerfDAOImpl.class 4KB
NoticeEditServlet.class 4KB
SuggestDAOImpl.class 4KB
TeacherDAOImpl.class 4KB
StudentEditServlet.class 3KB
LoginServlet.class 3KB
EditPerformanceServlet.class 3KB
AdminDAOImpl.class 2KB
JxkhSub.class 2KB
NoticeUpdataServlet.class 2KB
StudentAddServlet.class 2KB
EditPerfSubServlet.class 2KB
SuggestSub.class 2KB
StudentUpdataServlet.class 2KB
NoticeAddServlet.class 2KB
AddPerfSubServlet.class 2KB
NoticeDelServlet.class 2KB
DBConnection.class 2KB
DelPerformanceServlet.class 2KB
AddPerformanceServlet.class 2KB
StudentDelServlet.class 2KB
SuggestDelServlet.class 2KB
RAdminpasswordServlet.class 2KB
RTeapasswordServlet.class 1KB
RpasswordServlet.class 1KB
IndexAdminBean.class 1KB
NoticeBean.class 1KB
Student.class 1KB
SuggestBean.class 1KB
IndexBean.class 1KB
OutServlet.class 1KB
PerformanceBean.class 944B
IndexTeacherBean.class 940B
.classpath 529B
org.eclipse.wst.jsdt.ui.superType.container 49B
bootstrap.css 124KB
bootstrap-ie6.css 112KB
bootstrap.min.css 99KB
jquery-ui-1.10.0.custom.css 59KB
unicorn.main.css 33KB
font-awesome-ie7.min.css 25KB
docs.css 23KB
bootstrap-responsive.css 22KB
style.css 19KB
select2.css 18KB
bootstrap-responsive.min.css 16KB
font-awesome.min.css 15KB
uniform.css 11KB
ui.css 10KB
ui.css 10KB
ui.css 10KB
ui.css 10KB
ui.css 10KB
shCoreDefault.css 9KB
fullcalendar.css 8KB
shCore.css 6KB
datepicker.css 4KB
unicorn.blue.css 4KB
unicorn.red.css 4KB
unicorn.grey.css 3KB
jquery.gritter.css 2KB
colorpicker.css 2KB
iframe.css 2KB
iframe.css 2KB
iframe.css 2KB
iframe.css 2KB
iframe.css 2KB
unicorn.login.css 2KB
lingxuan-reset.css 2KB
multiupload.css 1KB
ie.css 1KB
rateit.css 870B
prettify.css 817B
bigstars.css 532B
jquery.ui.1.10.0.ie.css 507B
ie7.css 329B
antenna.css 291B
Thumbs.db 16KB
Thumbs.db 5KB
1321145518_刘福文_基于J2EE的高校绩效考核系统项目开发管理.doc 972KB
fontawesome-webfont.eot 25KB
crazy.gif 8KB
angry.gif 8KB
doubt.gif 7KB
wronged.gif 6KB
icons.gif 5KB
curse.gif 5KB
icons.gif 5KB
icons.gif 5KB
icons.gif 5KB
icons.gif 5KB
sleep.gif 5KB
quiet.gif 4KB
panic.gif 4KB
ohmy.gif 4KB
shutup.gif 4KB
共 593 条
- 1
- 2
- 3
- 4
- 5
- 6
资源评论
- jiazhuo_0632020-07-01分太高,不划算
- hongqt22020-12-24的确不划算。太粗糙了。
fuwen1024
- 粉丝: 30
- 资源: 24
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功