2017年8月6日

摘要: // tap事件封装function tap(obj, callBack){ if(typeof obj != 'object') return; // 变量 var startTime = 0; // 记录触摸开始时间 var isMove = false; // 记录是否产生移动 obj.add 阅读全文
posted @ 2017-08-06 17:46 xh.w 阅读(486) 评论(0) 推荐(0)
 
摘要: // ajax封装function ajax(options) { /** * 传入方式默认为对象 * */ options = options || {}; /** * 默认为GET请求 * */ options.type = (options.type || "GET").toUpperCase 阅读全文
posted @ 2017-08-06 17:45 xh.w 阅读(634) 评论(0) 推荐(0)