摘要:
<!DOCTYPE html><html><head><meta charset="UTF-8"/><title>JS在ff和ie区别</title><style> *{margin:0;padding:0;} .test3{ width:100px; height:100px; background-color:#f00}</style></head><body><select id="sel" class="test 阅读全文
摘要:
//列出1年每个月的天数var dateArr = new Array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);var date = new Date();var day = date.getDate();var month = date.getMonth(); //getMonth()是从0开始var year = date.getFullYear();var result = 0;for (var i = 0; i < month; i++) {result += dateArr[i];}result += day;//判断是否 阅读全文