日期:2014-05-16 浏览次数:20374 次
<script type="text/javascript"> var now = new Date(); var year=now.getFullYear()-5; document.write("<select name='_sName'>"); for(var a=1;a<=10;a++){ document.write("<option>"+year+"</option>"); year=year+1; } document.write("</select>"); </script>