上一页 1 2 3 4 5 6 ··· 13 下一页
摘要: 方式一: 1.使用JSON.stringify 将数组对象转化成json字符串; var array = ["1", "2"]; $.ajax({ type : 'POST', url: path + '/check/testPost', contentType : "application/jso 阅读全文
posted @ 2018-06-29 11:02 likwin 阅读(335) 评论(0) 推荐(0) 编辑
摘要: IE中的SVG IE中option的display:none样式无效 IE浏览器new Date()带参返回NaN new Date(str.replace(/-/g, "/")) 阅读全文
posted @ 2018-06-14 01:53 likwin 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 在IE中,汉字输入法输入拼音仍可触发keyup事件,但有时候并不希望这样 var str = ''; $('#searchKey').on('keyup', function(e){ if ($(this).val() != str) { str = $(this).val(); if(((e.ke 阅读全文
posted @ 2018-06-13 21:50 likwin 阅读(493) 评论(0) 推荐(0) 编辑
摘要: 在form表单或input中加入:onkeydown="if(event.keyCode==13){return false;}" 阅读全文
posted @ 2018-05-30 11:32 likwin 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 这里有个小秘密要分享给大家,如果你已经知道了,请忽略: img在没有指定src路径的时候,浏览器会自动添加边框, 所以,在你设置了border:none;之后,如果还存在边框,考虑考虑是不是这个问题。 拿走不谢!!! 阅读全文
posted @ 2018-05-30 10:05 likwin 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 以下内容均以前端的视角看待问题 首先,来聊聊IE IE的get请求会存在缓存,怎么解决呢? 追加参数:Math.random() / new Date().getTime() 设置请求头:xhr.setRequestHeader('If-Modified-Since','0'); 当我们请求服务器上 阅读全文
posted @ 2018-05-25 23:15 likwin 阅读(81) 评论(0) 推荐(0) 编辑
摘要: http://kangax.github.io/compat-table/es6/ 阅读全文
posted @ 2018-05-25 23:05 likwin 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 父页面与子页面之间的元素获取与方法调用: 1、JS 父调子子调父元素$(iframe选择器).contents().find(iframe中元素选择器);① $(父页面元素选择器, window.parent.document);② window.parent.$(父页面元素选择器)window.p 阅读全文
posted @ 2018-05-18 14:14 likwin 阅读(1349) 评论(0) 推荐(0) 编辑
摘要: /*placeholder字体设置*/ :-moz-placeholder { /* Mozilla Firefox 4 to 18 */ color: #4a4a4a; } ::-moz-placeholder { /* Mozilla Firefox 19+ */ color: #4a4a4a; 阅读全文
posted @ 2018-05-17 11:01 likwin 阅读(333) 评论(0) 推荐(0) 编辑
摘要: 官网地址:http://eonasdan.github.io/bootstrap-datetimepicker/ git地址:https://github.com/Eonasdan/bootstrap-datetimepicker moment语言包:https://github.com/momen 阅读全文
posted @ 2018-05-08 14:22 likwin 阅读(516) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 13 下一页