混合app开发
mystraight
这个作者很懒,什么都没留下…
展开
-
zepto延迟300s
<!doctype html><head> <meta charset="utf-8" /> <title>zepto延迟</title> <script src="http://zeptojs.com/zepto.js"></script> <style type="text/css"> .div1{ background:原创 2016-11-06 15:42:20 · 1322 阅读 · 0 评论 -
$state.go和$location.href有什么区别
前者不在浏览器中保存跳转前的网址,因此按返回键将无效 后者不存在这个问题 reload方法,强迫浏览器刷新当前页面 replace方法,通过指定URL替换当前缓存在历史里(客户端)的项目,因此当使用replace方法之后,你不能通过“前进”和“后退”来访问已经被替换的URL。 在实际应用的时候,重新刷新页面的时候,我们通常使用: location.reload() 或者是 history.go(翻译 2016-11-10 16:28:50 · 3214 阅读 · 0 评论 -
移动web页面,input获取焦点弹出系统虚拟键盘时,挡住input的解决方案
移动页面写定位时不用fixed定位 const brand = navigator.userAgent.indexOf(‘Android’) if (brand > -1) { const maxHeight = document.body.clientHeight window.addEventListener(‘resize’, function () { const原创 2017-11-11 11:01:12 · 2277 阅读 · 0 评论