随笔分类 -  bootstrap

摘要:今天做日期控件,需求要求设置一个时间范围限制,选择从今天开始的日期才可以选择,今天以前都不可以选择 主要体现在bootstrap-datetimepicker控件下面的2个日期参数 引用的基础库有 HTML代码 JS代码 附:精确到分的时间、年月日、时间、年月、月日、从今天开始、到今天结束 HTML 阅读全文
posted @ 2016-05-11 15:16 知兮 阅读(25846) 评论(0) 推荐(1) 编辑
摘要:.xj-file input[type=file]{border:none; outline:none; position:absolute; top:0; left:0px; width:54px; height:34px; cursor:pointer; filter:alpha(opacity 阅读全文
posted @ 2016-03-11 15:05 知兮 阅读(554) 评论(0) 推荐(0) 编辑
摘要:function commonConfirm(msg,call){ showConfirmBox("消息提示",msg,call);}$(document).on('click','.jq_settle',function(){ var orderId = $(this).att... 阅读全文
posted @ 2016-01-18 15:28 知兮 阅读(587) 评论(0) 推荐(0) 编辑
摘要:今天收到程序组提交的一个兼容BUG,在火狐中使用模态框加载日期控件时选择时间下拉菜单没有效果(不能点击),而在谷歌中却是好的,排错思路:1,在当前页面主层放置一个时间控件,测试通过2,在ajax加载页放置一个时间控件,测试通过3,在模态框最外层放置一个时间控件,不通过主要原因是模态框与时间下拉菜单层... 阅读全文
posted @ 2015-10-26 17:56 知兮 阅读(1712) 评论(0) 推荐(0) 编辑
摘要:大家常用弹出提示成功或失败时候喜欢用alert,如果不用这个,写个弹窗又麻烦,bootstrap中就有个方法alert("操作成功");commonAlert("操作成功"); 阅读全文
posted @ 2015-10-21 11:09 知兮 阅读(563) 评论(0) 推荐(0) 编辑
摘要:$('#startTime').daterangepicker({ singleDatePicker: true,format:"YYYY-MM-DD HH:mm:ss",timePicker:true}); 阅读全文
posted @ 2015-09-07 16:41 知兮 阅读(599) 评论(0) 推荐(0) 编辑
摘要:$(function(){ $("#editor").on("hidden.bs.modal",function(){ //清除缓存方法 $(this).find("#textareaTo").empty(); });}); 阅读全文
posted @ 2015-09-07 16:39 知兮 阅读(531) 评论(0) 推荐(0) 编辑
摘要:$(function(){ $('#questionnaire').on('hidden.bs.modal',function(){ //清除缓存方法 });});事件Bootstrap 的模态框类提供了一些事件用于监听并执行你自己的代码。All modal events ... 阅读全文
posted @ 2015-08-06 09:53 知兮 阅读(1942) 评论(0) 推荐(0) 编辑