<div class="iteye-blog-content-contain" style="font-size: 14px"></div>
<html>
<body>
<select name="F_Period">
<script>
var isdate= new Date();
var year=isdate.getFullYear();//获取当前年
var month=isdate.getMonth()+1;//获取当前月
for(var i=1;i<13;i++){
if(month==0){
year--;
month=12;
}
document.write("<option value=''>"+year+monthHandler(month));
month--;
function monthHandler(v_month){
return v_month<10?'0'+v_month:''+v_month;
}
}
</script>
</select>
</body>