随笔分类 - JavaScript & jQuery
摘要:$(function(){ //全选或全不选 $("#all").click(function () { if ($(this).prop("checked")) { console.log("true") $(".ck_childs").pro...
阅读全文
摘要:http://www.mescroll.com/api.html#options 这里有几个重要的设置 1、down 下不启用下拉刷新是因为再手机端有默认的下拉刷新,会冲突,待解决 2、up 中的 auto 是第一次自动加载; page是设置分页的size,一般num不在这里设置 clearEmpt
阅读全文
摘要::jQuery省市区三级联动插件city-picker 重置 确定 ...
阅读全文
摘要:1、弹框居中显示 上下居中 需要上下居中引用 bootstrap-modalmanager.js 左右居中 修改 bootstrap-modal.js 中 this.$element.css('margin-left', ''); 改为 this.$element.css('margin-left'
阅读全文
摘要://图片预览的 function showPreview(source){ var file = source.files[0]; if(window.FileReader) { var fr = new FileReader(); fr.onloadend = function(e) { $(source).paren...
阅读全文
摘要:遍历所有 checkbox 如果是选中的用 绿色 如果未选中用 灰色 点击时选中未选中颜色变化
阅读全文
摘要:上下居中 引用 bootstrap-modalmanager.js 左右居中 修改 bootstrap-modal.js 中 this.$element.css('margin-left', ''); 改为 this.$element.css('margin-left', 0 - this.$ele
阅读全文
摘要:隐藏域中的字段无法验证解决办法 修改 jquery.validate.js 中的 ignore: ":hidden",
阅读全文

浙公网安备 33010602011771号