<form id="search-form"> <input type="search" placeholder="搜索" value="" /> </form> $("#search-form").submit(function(e){ if($.trim($('#search-text').va
分类:
其他好文 时间:
2016-03-09 17:46:13
阅读次数:
163
$(" body").click(function(){ $("#div").hide(); }); $("button").click(function(e){ $("div").show(); e.stopPropagation();//阻止冒泡到body }); $("#div").click
分类:
其他好文 时间:
2016-03-09 17:42:26
阅读次数:
138
<!--Jquery代码--> $(':checkbox').click(function() { var $this = $(this); if ($this.parent().hasClass('radio')) { var checkboxs = $this.parent().children
分类:
其他好文 时间:
2016-03-09 17:40:27
阅读次数:
133
1,Object.is() /* ES6 PolyFill */ if(!Object.js){ Object.is=function(x,y){ if(x===y){ return x!==0 || 1/x===1/y }else{ return x!==x && y!==y } }}
分类:
其他好文 时间:
2016-03-09 17:37:49
阅读次数:
122
$(function () { // 判断整数value是否等于0 jQuery.validator.addMethod("isIntEqZero", function (value, element) { value = parseInt(value); return this.optional(...
分类:
Web程序 时间:
2016-03-09 17:33:07
阅读次数:
296
<!--父窗口JS--> //查看审核详细 function viewFlow() { var strBackValue= openWin('../VertifyView.aspx?&rn=' + Math.random()+'&View='+strValue, 630, 180);//这里的str
分类:
Web程序 时间:
2016-03-09 17:27:21
阅读次数:
253
直接上干货: 需要的材料: change_select.js (文末会给出下载地址) 使用方法: 1.调用方法:<script type="text/javascript" > $(function(){ $("select").selectCss(); })</script> *使用时必须引用jq
分类:
其他好文 时间:
2016-03-09 17:26:51
阅读次数:
144
一. 获取Url中searchParams getQueryParamsMap: function(searchUrlWithoutQuestionMark) { var result = {}; var array = searchUrlWithoutQuestionMark.split('&')
分类:
移动开发 时间:
2016-03-09 17:26:47
阅读次数:
148
官方文档代码: 1 var schema = new Schema(..); 2 schema.post('save', function (doc) { 3 console.log('this fired after a document was saved'); 4 }); 5 6 var Mo
分类:
其他好文 时间:
2016-03-09 17:19:51
阅读次数:
173
//跨浏览器兼容//跨浏览器添加事件function addEvent(obj,type,fn){ if(obj.addEventListener){ obj.addEventListener(type,fn,false); }else if(obj.attachEvent){ obj.attach
分类:
Web程序 时间:
2016-03-09 15:57:05
阅读次数:
190