上一页 1 2 3 4 5 6 7 8 9 10 ··· 26 下一页
摘要: $('body').on('touchmove','.slidebg',function () { $(document.body).on('touchmove.prevUC', function(e) { e.preventDefault(); }); }); $('body').on('touchend','.slidebg',function () ... 阅读全文
posted @ 2017-09-26 16:51 快乐的咸鱼 阅读(2813) 评论(0) 推荐(0) 编辑
摘要: 在单页面应用中,会导致,history 跳转两次的情况: 要使用: 代替! 阅读全文
posted @ 2017-09-22 14:13 快乐的咸鱼 阅读(304) 评论(0) 推荐(0) 编辑
摘要: var detectBack = { initialize: function() { $(window).unbind('hashchange').bind('hashchange', function(){ }); $(window).unbind('popstate').bind('pop... 阅读全文
posted @ 2017-09-22 13:39 快乐的咸鱼 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 浏览器会在跳转时,先将汉字编译成 Unicode,然后跳转,导致hash值改变两次,相当于history 中 加入了两次URL 阅读全文
posted @ 2017-09-22 11:43 快乐的咸鱼 阅读(308) 评论(0) 推荐(0) 编辑
摘要: app.run(['$rootScope', '$location', function($rootScope, $location) { /* 监听路由的状态变化 */ $rootScope.$on('$routeChangeStart', function(evt, next, current){ console.log('route begin ch... 阅读全文
posted @ 2017-09-21 14:17 快乐的咸鱼 阅读(1314) 评论(0) 推荐(0) 编辑
摘要: $timeout 会在执行后刷新页面上 与angular 相关的变量,在于jQuery共用修改页面变量时,这很可能会导致刷新跳动的现象: 阅读全文
posted @ 2017-09-21 11:07 快乐的咸鱼 阅读(258) 评论(0) 推荐(0) 编辑
摘要: *{ -webkit-touch-callout:none; -webkit-user-select:none; -khtml-user-select:none; -moz-user-select:none; -ms-user-select:none; user-select:none; } 阅读全文
posted @ 2017-09-20 15:26 快乐的咸鱼 阅读(3540) 评论(0) 推荐(0) 编辑
摘要: console.log(v.sOpenNum.replace(/(.*)\|/, '$1 = ').replace(/\|/g,' + ')); 阅读全文
posted @ 2017-09-19 18:06 快乐的咸鱼 阅读(948) 评论(0) 推荐(0) 编辑
摘要: event.preventDefault() 解决按钮多次点击 导致页面变大 阅读全文
posted @ 2017-09-19 17:30 快乐的咸鱼 阅读(372) 评论(0) 推荐(0) 编辑
摘要: 今天遇到个问题: <a href="#" onclick="history.go(-1)">后退</a> 点击"后退"链接时,在IE,firefix下,history.go(-1)可以起到后退的作用,但在chrome下不起作用,要用history.go(-2)才生效。 后来研究了一下,发现在IE,f 阅读全文
posted @ 2017-09-18 15:38 快乐的咸鱼 阅读(1283) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 26 下一页