bootstrap中常用的插件及示例
来源:互联网 发布:tcp ip网络协议分析 编辑:程序博客网 时间:2024/04/30 09:16
select2插件的使用
选择select2插件的使用
$(id).select2({ data : data, minimumResultsForSearch : Infinity,// 禁用搜索 allowClear : true });
bootstrap-validator表单验证
使用bootstrap-validator插件
reset重置表单
$('#btn-reset').click(function() { $('#changeForm').data('bootstrapValidator').resetForm(true);});
bootstrap-dialog页面加载、button
使用bootstrap-dialog插件
function changePasswd(){ BootstrapDialog.show({ title : "修改密码", message: function(dialog) { var $message = $('<div></div>'); var pageToLoad = dialog.getData('pageToLoad'); $message.load(pageToLoad); return $message; }, data: { 'pageToLoad': 'changePasswd.html' }, buttons: [{ id: 'btn-ok', icon: 'glyphicon glyphicon-check', label: 'OK', cssClass: 'btn-success', autospin: false, action: function(dialogItself){ change(); dialogItself.close(); } }, { id:'btn-reset', cssClass: 'btn-warning', label: '重置', icon: 'glyphicon glyphicon-repeat', action : function(){ document.getElementById("changeForm").reset(); $('#btn-reset').click(function() { $('#changeForm').data('bootstrapValidator').resetForm(true); }); } }, { id:'btn-close', icon:'glyphicon glyphicon-remove', label: 'Close', cssClass: 'btn-danger', action: function(dialogItself){ dialogItself.close(); } }] });
}
Jquery-confirm 插件之alert使用
使用 jQuery-confirm.js插件
function alertView(str){ $.alert({ animation : 'zoom', animationBounce : 2, keyboardEnabled : true, title : false, content : str, theme : 'white', });}
Jquery-confirm 插件之confirm使用
使用 Jquery-confirm.js插件
$.confirm({ title: '退出系统登陆吗?', content : false, // autoClose: 'confirm|10000', confirmButtonClass : 'btn-info', cancelButtonClass : 'btn-danger', confirm : function() { $.ajax({ type : "post", url : "logoutAction.action", async: false, success :function(){ location.href = "../login.jsp"; } }); }, cancel : function() { alert('canceled'); }});
bootstrap Table
- bootstrap Table更新操作
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 添加操作
使用bootstrap table插件
table rowStyle和runningFormatter
- 1
- 1
function rowStyle(row, index) {/*var classes = ['active', 'success', 'info', 'warning', 'danger'];*/var classes = ['success', 'info', 'warning', 'danger'];/*if (index % 2 === 0 && index / 2 < classes.length) { return { classes: classes[index / 2] };}*/if(index % 2 ===0){ return { classes:classes[index%3] }}return {};}function runningFormatter(value, row, index) {return index+1;}
tablet添加操作
<th data-field="operate" data-formatter="operateFormatter" data-events="operateEvents" data-align="center">操作</th>
bootstrap model远程加载示例
<a id="adduser" class="btn btn-danger" data-toggle="modal" href="addUser.html" data-target="#adduserModal">添加</a><div class="modal fade" id="adduserModal" role="dialog" aria-labelledby="myModalLabel" data-keyboard="true"> <div class="modal-dialog" role="document"> <div class="modal-content"></div> </div> </div>
table表中修改某一条记录时,model弹出框获取记录值
0 0
- bootstrap中常用的插件及示例
- bootstrap中常用的插件及示例
- bootstrap常用的时间插件罗列及对比
- bootstrap日期插件的使用示例
- BootStrap常用CSS样式的代码示例
- Grunt常用插件及示例说明
- Grunt常用插件及示例说明
- eclipse中插件的安装及常用插件介绍
- bootstrap常用插件
- bootstrap中一些插件的文档地址
- Maven常用插件示例
- 常用的Intent的URI及示例
- 响应式网站开发框架Bootstrap中Carousel插件的使用及使之支持手机端
- bootstrap的增强插件
- Bootstrap的JavaScript插件
- bootstrap的fileinput插件
- bootstrap的插件 autocomplete
- bootstrap的验证插件
- python实现简单的系统监控
- iOS指纹识别
- DHCP options
- html设置密码输入限制在十个字符
- css3 box-shadow阴影(外阴影与外发光)讲解
- bootstrap中常用的插件及示例
- JAVA动态任务SCHEDULEJOB
- 测试
- kali linux中文版终端字体重叠问题
- 静态局部变量
- LeetCode
- Saprk数据倾斜七解决方案(三)
- Mapper部分联合查询问题
- 单点登录SSO的实现原理