摘要: ajax请求为异步操作时,返回的数据不会被并列函数执行 阅读全文
posted @ 2017-03-21 10:40 winyh 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 使用vue-resource时,往headers里添加token后,post方法会自动变成options? Vue.http.interceptors.push(function(request, next) { // modify headers request.headers.set('Acce 阅读全文
posted @ 2017-03-16 14:12 winyh 阅读(2211) 评论(0) 推荐(0) 编辑
摘要: function datadel(e){ var arr = String(e).split("."); (arr[arr.length - 1]).length>=3? e= e.toFixed(1):e=e; console.log(e); return e;} var original = d 阅读全文
posted @ 2017-03-10 10:46 winyh 阅读(198) 评论(0) 推荐(0) 编辑
摘要: $(function(){ $(document).on('tap','.w-location-group .mui-table-view-cell',function(){ var bool = $(this).find('span.location-ico').attr('data-id') = 阅读全文
posted @ 2017-03-04 11:34 winyh 阅读(407) 评论(0) 推荐(0) 编辑
摘要: click 在网页测试手机模式下无效,不能执行。 调成非手机模式即可 阅读全文
posted @ 2017-02-20 15:49 winyh 阅读(449) 评论(0) 推荐(0) 编辑