摘要:
//获取当前时间: var myDate = new Date();//当前时间 var year = myDate.getFullYear();//当前年份 var month = myDate.getMonth() + 1;//当前月份 var day = myDate.getDate();//当前日 var getYear = myDate.getYear(); //获取当前年份(2位... 阅读全文
摘要:
//滚动条大于120px时,判断pc端的情况下,导航条固定定位 $(window).scroll(function(){ var viewWidth=$(document).width() var top=$(document).scrollTop(); if(viewWidth>=768&&top>=120){ ... 阅读全文