10 2017 档案
摘要:token = JSON.parse(data).token; $.ajaxSetup({ //发送请求前触发 beforeSend: function(xhr) { //可以设置自定义标头 xhr.setRequestHeader('token', token); } })
阅读全文
摘要:js代码: 调用: 参考链接:http://www.zhangxinxu.com/wordpress/2016/12/web-mobile-scroll-prevent-window-js-css/ demo:http://www.zhangxinxu.com/study/201612/mobile
阅读全文
摘要:参考链接:https://segmentfault.com/a/1190000002783179
阅读全文
摘要:参考链接:http://www.jianshu.com/p/caa1032e5865
阅读全文
摘要:原css: 解决方法:去掉line-height和vertical-align 使用 flex 布局。 把父元素设为:
阅读全文
摘要:参考:http://www.jianshu.com/p/42e11515c10f
阅读全文
摘要:原因: By default, Safari Mobile does not use the :active state unless there is a touchstart event handler on the relevant element or on the <body>. 解决方法
阅读全文
摘要:$(document).on('touchend',function(e){ if(!$('.menuIcon')[0].contains(e.target)){ if(flag == 0){ $('.navMenu').slideUp(); flag = 1; } ...
阅读全文