感谢您的支持,我会继续努力的!
打开微信扫一扫,即可进行扫码打赏哦
点我查看本站打赏源码!
Powered by RUNCODEX.COM,学的不仅是技术,更是梦想!!!
<select id="year"></select>
<select id="month"></select>
<select id="day"></select>
xxxxxxxxxx
window.onload = function ()
{
var year = document.getElementById ("year");
var month = document.getElementById ("month");
var day = document.getElementById ("day");
for ( var i = 1949; i < 2018; i++)
var opt = document.createElement("option");
opt.value = i;
opt.innerText = i;
year.appendChild(opt);
}
for ( var i = 1; i < 13; i++)
month.appendChild(opt);
for ( var i = 1; i < 32; i++)
day.appendChild(opt);
输入 CSS 代码……