随笔分类 - JavaScript
摘要:var Ajax={ get: function(url, fn) { // XMLHttpRequest对象用于在后台与服务器交换数据 var xhr = new XMLHttpRequest(); xhr.open('GET', url, true); xhr.onreadystatechang
阅读全文
摘要:/** * 实现倒计时 * @params startTime: 开始时间戳 endTime: 结束时间戳 */ countDownFun(startTime,endTime){ const that = this; setInterval1 = setInterval(function(){ va
阅读全文