代码有误,应该为:
with(document.all)
{
vYear=parseInt(Year.options[Year.selectedIndex].text);
vMonth=parseInt(Month.options[Month.selectedIndex].text);
Day.length=0 for(i=0;i<(new Date(vYear,vMonth,0)).getDate();i++)
{
Day.options[Day.length++].value=Day.length;
Day.options[Day.length-1].text=Day.length;
}
}
with(document.all)
{
vYear=parseInt(Year.options[Year.selectedIndex].text);
vMonth=parseInt(Month.options[Month.selectedIndex].text);
Day.length=0 for(i=0;i<(new Date(vYear,vMonth,0)).getDate();i++)
{
Day.options[Day.length++].value=Day.length;
Day.options[Day.length-1].text=Day.length;
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货