随笔分类 -  JavaScript

摘要:var Ajax={ get: function(url, fn) { // XMLHttpRequest对象用于在后台与服务器交换数据 var xhr = new XMLHttpRequest(); xhr.open('GET', url, true); xhr.onreadystatechang 阅读全文
posted @ 2022-08-05 15:10 冷闲欧巴 阅读(132) 评论(0) 推荐(0) 编辑
摘要:/** * 实现倒计时 * @params startTime: 开始时间戳 endTime: 结束时间戳 */ countDownFun(startTime,endTime){ const that = this; setInterval1 = setInterval(function(){ va 阅读全文
posted @ 2022-06-08 13:57 冷闲欧巴 阅读(46) 评论(0) 推荐(0) 编辑

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