上一页 1 2 3 4 5 6 ··· 9 下一页
摘要: window.onpageshow=function(e){ var a=e||window.event; alert(a.persisted); if(a.persisted){ //alert("页面读取了缓存") } } 阅读全文
posted @ 2017-09-21 13:43 永往 阅读(845) 评论(0) 推荐(0) 编辑
摘要: location是javascript里边管理地址栏的内置对象,比如location.href就管理页面的url,用location.href=url就可以直接将页面重定向url。而location.hash则可以用来获取或设置页面的标签值。比如http://domain/#admin的locati 阅读全文
posted @ 2017-09-21 13:39 永往 阅读(1841) 评论(0) 推荐(0) 编辑
摘要: $("input").bind('focus',function(){var ua = navigator.userAgent.toLowerCase();if(/android/.test(ua)){var height = (window.screen.height-50)/2;var inpu 阅读全文
posted @ 2017-09-18 16:20 永往 阅读(230) 评论(0) 推荐(0) 编辑
摘要: /////////去掉滚动条mui.plusReady(function(){plus.webview.currentWebview().setStyle({scrollIndicator:'none',softinputMode: "adjustResize"});}) 让文字逐渐出现: wind 阅读全文
posted @ 2017-09-18 16:19 永往 阅读(1298) 评论(0) 推荐(0) 编辑
摘要: 移动端如何实现图片通过捏合手势放大缩小:https://segmentfault.com/q/1010000006693886/a-1020000006702998 canvas的使用样例:http://www.hangge.com/blog/cache/detail_1038.html canva 阅读全文
posted @ 2017-09-18 15:44 永往 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 完美解决safari、微信浏览器下拉回弹效果,只保留局部回弹效果。 CSS代码 HTML代码 JS代码 阅读全文
posted @ 2017-09-18 14:07 永往 阅读(2384) 评论(0) 推荐(0) 编辑
摘要: 1. IOS移动端click事件300ms的延迟响应 移动设备上的web网页是有300ms延迟的,玩玩会造成按钮点击延迟甚至是点击失效。这是由于区分单击事件和双击屏幕缩放的历史原因造成的, 2007年苹果发布首款iphone上IOS系统搭载的safari为了将适用于PC端上大屏幕的网页能比较好的展示 阅读全文
posted @ 2017-09-18 14:05 永往 阅读(482) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-09-18 13:52 永往 阅读(1375) 评论(0) 推荐(0) 编辑
摘要: 摘自:https://www.2cto.com/kf/201704/623753.html 阅读全文
posted @ 2017-09-14 16:42 永往 阅读(1001) 评论(0) 推荐(0) 编辑
摘要: 参考网址:http://www.cnblogs.com/subway-2008/archive/2011/10/11/2208008.html 阅读全文
posted @ 2017-09-05 16:25 永往 阅读(736) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 9 下一页