摘要:
// 导航栏下滚隐藏,上滚显示 var newTop = 0, oldTop = 0; $('#read_mid_srollbar').on('scroll', function () { if (window.isFull == false) { newTop = $("#read_mid_sro 阅读全文
摘要:
网页当前状态判断,若不处于当前窗口则不发请求 var interval_output = null; function sendRequst() { interval_output = setInterval(function () { SetClock(); }, 60000); } sendRe 阅读全文
摘要:
// 设置cookiefunction setCookie(name, value) { var curDate = new Date(); //当前时间戳 var curTamp = curDate.getTime(); //当日凌晨的时间戳,减去一毫秒是为了防止后续得到的时间不会达到00:00: 阅读全文
摘要:
// 请求当前页面 ImgLazyLoad({ state, commit },pageNo) { if(state.pageArr[pageNo-1].flag !== UNLOAD){ // 若已加载,则请求终止 return false; } state.pageArr[pageNo-1].f 阅读全文
摘要:
<!doctype html><html lang="en"><head> <meta charset="UTF-8"> <title>图片懒加载-简单</title> <script src="js/jquery-3.0.0.min.js"></script> <style> ul,li{ lis 阅读全文