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' } };
阅读全文
摘要://定义setTimeout执行方法var time = null; $('div').click(function () { // 取消上次延时未执行的方法 clearTimeout(time); //执行延时 time = setTimeout(function(){ //do function
阅读全文