摘要: $(document).ready(function(){ // 兼容IE9下的placeholder function placeholderSupport() { return 'placeholder' in document.createElement('input'); } if(!pla 阅读全文
posted @ 2018-07-18 17:09 努力才会进步 阅读(148) 评论(0) 推荐(0) 编辑
摘要: /*两个日期之间差几天*/function DateDiff(sDate1, sDate2) { //sDate1和sDate2是yyyy-MM-dd格式 var aDate, oDate1, oDate2, iDays; aDate = sDate1.split("-"); oDate1 = ne 阅读全文
posted @ 2018-07-18 10:42 努力才会进步 阅读(905) 评论(0) 推荐(0) 编辑
摘要: var now = new Date(); //当前日期var nowDayOfWeek = now.getDay(); //今天本周的第几天var nowDay = now.getDate(); //当前日期号var nowMonth = now.getMonth(); //当前月var nowY 阅读全文
posted @ 2018-07-18 10:39 努力才会进步 阅读(367) 评论(0) 推荐(0) 编辑