js实现下拉选项默认为当前年月var date = new Date() new 一个Date对象var year = date.getFullYear() 年份var month = date.getMonth() + 1 月份(从0开始,所以应+12023-04-22JavaScript210