会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
LikWin
Don't disorderly in heart, Don't trapped in love, Don't miss the past, Don't afraid of the future.
博客园
首页
新随笔
联系
管理
上一页
1
2
3
4
5
6
···
13
下一页
2018年6月29日
ajax请求到后台
摘要: 方式一: 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
阅读(345)
评论(0)
推荐(0)
2018年6月14日
LOOK OUT THE HOLE!
摘要: IE中的SVG IE中option的display:none样式无效 IE浏览器new Date()带参返回NaN new Date(str.replace(/-/g, "/"))
阅读全文
posted @ 2018-06-14 01:53 likwin
阅读(130)
评论(0)
推荐(0)
2018年6月13日
应用keyup监测输入框兼容IE处理
摘要: 在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
阅读(498)
评论(0)
推荐(0)
2018年5月30日
如何防止input回车造成提交表单
摘要: 在form表单或input中加入:onkeydown="if(event.keyCode==13){return false;}"
阅读全文
posted @ 2018-05-30 11:32 likwin
阅读(177)
评论(0)
推荐(0)
img出现让人摸不着头脑的边框怎么办???
摘要: 这里有个小秘密要分享给大家,如果你已经知道了,请忽略: img在没有指定src路径的时候,浏览器会自动添加边框, 所以,在你设置了border:none;之后,如果还存在边框,考虑考虑是不是这个问题。 拿走不谢!!!
阅读全文
posted @ 2018-05-30 10:05 likwin
阅读(138)
评论(0)
推荐(0)
2018年5月25日
一起来聊聊兼容性的问题
摘要: 以下内容均以前端的视角看待问题 首先,来聊聊IE IE的get请求会存在缓存,怎么解决呢? 追加参数:Math.random() / new Date().getTime() 设置请求头:xhr.setRequestHeader('If-Modified-Since','0'); 当我们请求服务器上
阅读全文
posted @ 2018-05-25 23:15 likwin
阅读(86)
评论(0)
推荐(0)
ES6 各浏览器支持情况
摘要: http://kangax.github.io/compat-table/es6/
阅读全文
posted @ 2018-05-25 23:05 likwin
阅读(278)
评论(0)
推荐(0)
2018年5月18日
iframe页面之间元素获取与方法调用
摘要: 父页面与子页面之间的元素获取与方法调用: 1、JS 父调子子调父元素$(iframe选择器).contents().find(iframe中元素选择器);① $(父页面元素选择器, window.parent.document);② window.parent.$(父页面元素选择器)window.p
阅读全文
posted @ 2018-05-18 14:14 likwin
阅读(1391)
评论(0)
推荐(0)
2018年5月17日
placeholder
摘要: /*placeholder字体设置*/ :-moz-placeholder { /* Mozilla Firefox 4 to 18 */ color: #4a4a4a; } ::-moz-placeholder { /* Mozilla Firefox 19+ */ color: #4a4a4a;
阅读全文
posted @ 2018-05-17 11:01 likwin
阅读(342)
评论(0)
推荐(0)
2018年5月8日
Bootstrap3 之 Datetimepicker
摘要: 官网地址: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
阅读(542)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
···
13
下一页
公告