08 2019 档案

摘要:/* http.js */ import 'whatwg-fetch' // HTTP 工具类 export default class Http { static async request(method, url, data) { const param = { method: method, headers: { 'Content-Type': 'application/json' } }; 阅读全文
posted @ 2019-08-26 15:09 _心之所向便是光 阅读(840) 评论(0) 推荐(0) 编辑
摘要://定义setTimeout执行方法var time = null; $('div').click(function () { // 取消上次延时未执行的方法 clearTimeout(time); //执行延时 time = setTimeout(function(){ //do function 阅读全文
posted @ 2019-08-23 10:56 _心之所向便是光 阅读(160) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示