摘要: token = JSON.parse(data).token; $.ajaxSetup({ //发送请求前触发 beforeSend: function(xhr) { //可以设置自定义标头 xhr.setRequestHeader('token', token); } }) 阅读全文
posted @ 2017-10-20 18:36 糖糖部落 阅读(593) 评论(0) 推荐(0) 编辑
摘要: js代码: 调用: 参考链接:http://www.zhangxinxu.com/wordpress/2016/12/web-mobile-scroll-prevent-window-js-css/ demo:http://www.zhangxinxu.com/study/201612/mobile 阅读全文
posted @ 2017-10-20 17:38 糖糖部落 阅读(1463) 评论(0) 推荐(0) 编辑
摘要: 参考链接:https://segmentfault.com/a/1190000002783179 阅读全文
posted @ 2017-10-20 14:27 糖糖部落 阅读(470) 评论(0) 推荐(0) 编辑
摘要: 参考链接:http://www.jianshu.com/p/caa1032e5865 阅读全文
posted @ 2017-10-20 11:33 糖糖部落 阅读(832) 评论(0) 推荐(0) 编辑