摘要:
$(document).ready(function(){ // 兼容IE9下的placeholder function placeholderSupport() { return 'placeholder' in document.createElement('input'); } if(!pla 阅读全文
摘要:
/*两个日期之间差几天*/function DateDiff(sDate1, sDate2) { //sDate1和sDate2是yyyy-MM-dd格式 var aDate, oDate1, oDate2, iDays; aDate = sDate1.split("-"); oDate1 = ne 阅读全文
摘要:
var now = new Date(); //当前日期var nowDayOfWeek = now.getDay(); //今天本周的第几天var nowDay = now.getDate(); //当前日期号var nowMonth = now.getMonth(); //当前月var nowY 阅读全文