## 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"
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
python基于协同过滤推荐算法的电影推荐系统源码.zip该项目是个人高分毕业设计项目源码,已获导师指导认可通过,都经过严格调试,确保可以运行!放心下载使用。 python基于协同过滤推荐算法的电影推荐系统源码.zip该项目是个人高分毕业设计项目源码,已获导师指导认可通过,都经过严格调试,确保可以运行!放心下载使用。python基于协同过滤推荐算法的电影推荐系统源码.zip该项目是个人高分毕业设计项目源码,已获导师指导认可通过,都经过严格调试,确保可以运行!放心下载使用。python基于协同过滤推荐算法的电影推荐系统源码.zip该项目是个人高分毕业设计项目源码,已获导师指导认可通过,都经过严格调试,确保可以运行!放心下载使用。python基于协同过滤推荐算法的电影推荐系统源码.zip该项目是个人高分毕业设计项目源码,已获导师指导认可通过,都经过严格调试,确保可以运行!放心下载使用。python基于协同过滤推荐算法的电影推荐系统源码.zip该项目是个人高分毕业设计项目源码,已获导师指导认可通过,都经过严格调试,确保可以运行!放心下载使用。python基于协同过滤推荐算法的电影推荐系统
资源推荐
资源详情
资源评论
收起资源包目录
基于协同过滤推荐算法的电影推荐系统.zip (72个子文件)
基于协同过滤推荐算法的电影推荐系统
db.sqlite3 22.29MB
templates
movie_recommend
nopersonfound.html 355B
underminimum.html 370B
createuser.html 870B
recommendations.html 346B
userexistsorproblem.html 323B
pleasesignin.html 342B
home.html 792B
superusersignin.html 295B
signin.html 645B
query_results.html 858B
base.html 5KB
signout.html 718B
快速启动.bat 80B
manage.py 636B
plots.csv 234KB
umatrix.csv 2.19MB
images
3.png 16KB
1.png 18KB
5.png 60KB
4.png 53KB
2.png 20KB
movie_recommend
__init__.py 0B
tests.py 60B
admin.py 408B
load_data.py 2KB
migrations
__init__.py 0B
0001_initial.py 2KB
__pycache__
0001_initial.cpython-37.pyc 1KB
__init__.cpython-37.pyc 185B
apps.py 104B
models.py 2KB
recommend_algos.py 2KB
__pycache__
views.cpython-37.pyc 6KB
admin.cpython-37.pyc 551B
recommend_algos.cpython-37.pyc 3KB
load_data.cpython-37.pyc 3KB
models.cpython-37.pyc 2KB
__init__.cpython-37.pyc 174B
.ipynb_checkpoints
Untitled-checkpoint.ipynb 12KB
views.py 12KB
static
.DS_Store 8KB
js
.DS_Store 8KB
bootstrap-tooltip.js 7KB
bootstrap-scrollspy.js 4KB
bootstrap-collapse.js 4KB
bootstrap-typeahead.js 7KB
application.js 4KB
bootstrap-button.js 3KB
bootstrap-dropdown.js 2KB
google-code-prettify
prettify.css 815B
prettify.js 13KB
bootstrap-alert.js 2KB
bootstrap-tab.js 3KB
bootstrap-modal.js 5KB
bootstrap-popover.js 3KB
bootstrap-transition.js 2KB
jquery.js 242KB
README.md 3KB
bootstrap-carousel.js 4KB
css
.DS_Store 6KB
bootstrap-responsive.css 11KB
bootstrap.css 86KB
docs.css 15KB
recommend_system
__init__.py 0B
wsgi.py 409B
urls.py 1KB
settings.py 4KB
__pycache__
settings.cpython-37.pyc 3KB
__init__.cpython-37.pyc 175B
wsgi.cpython-37.pyc 596B
urls.cpython-37.pyc 1KB
共 72 条
- 1
资源评论
- 2301_800752922024-01-14总算找到了想要的资源,搞定遇到的大问题,赞赞赞!
盈梓的博客
- 粉丝: 6841
- 资源: 1247
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功