var year = date.getFullYear()// 年份
var month = date.getMonth() + 1// 月份(<a href="https://www.baidu.com/s?wd=%E4%BB%8E0%E5%BC%80%E5%A7%8B&tn=44039180_cpr&fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1Ykuj0vnWR3nHnvujF-nvD40ZwV5Hcvrjm3rH6sPfKWUMw85HfYnjn4nH6sgvPsT6KdThsqpZwYTjCEQLGCpyw9Uz4Bmy-bIi4WUvYETgN-TLwGUv3EnHbdrH0LPHc4P1RYnWTsP1Rsn0" target="_blank" class="baidu-highlight">从0开始</a>,所以应+1)
for(var i = monthi >month - 6i--) {
$("<option value=''>" + year + "年" + i + "月" + "</option>").appendTo($("select"))// 依次添加下拉框选项,value自定义,右边的appendTo参数为目标选择框
}
select sysdate+日 from dualselect add_months(sysdate,月) from dual
select add_months(sysdate,12*年) from dual
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)