www.ctrt.net > js 怎么循环出一个关于日期的sElECt框

js 怎么循环出一个关于日期的sElECt框

给一个代码例子: Insert title here for(i=2050;i>=1940;i--) { document.write(''+i+'') } 年 1 2 3 4 5 6 7 8 9 10 11 12 月 日function CheckDay(){ var YearNo,MonthNo,DayNo; YearNo = document.d_reg_form.year.value; MonthNo = documen...

for(var i=1 ; i

请选择:

给你个建议,先读取系统时间,然后创建一个数组,以系统分钟为基准循环累加出分钟写入到数组里面。此时你就得到了一个20分钟间隔的数组了。

参考: for(var i=0;i

window.onload = function() { var now = new Date(); var currentYear = now.getFullYear(); var currentMonth = now.getMonth() + 1; BindSelect(document.getElementById('year'), currentYear - 50, currentYear + 10, currentYear); BindS...

ear_month_day.js function DateSelector(selYear, selMonth, selDay) { this.selYear = selYear; this.selMonth = selMonth; this.selDay = selDay; this.selYear.Group = this; this.selMonth.Group = this; // 给年份、月份下拉菜单添加处理o...

是不是这样 var data=[ {"AAA":{"id":"1","name":"asdfasdf"}}, {"BBB":{"id":"1","name":"asdfasdf"}}, {"CCC":{"id":"1","name":"asdfasdf"}}, {"DDD":{"id":"1","name":"asdfasdf"}}, {"EEE":{"id":"1","name":"asdfasdf"}}, {"FFF":{"id":"1...

innerHTML appendChild window.onload -----> todo that

用jquery实现方便点,但是你要求用javascript,那就用js吧 1.获取select的下拉项 2.循环遍历下拉项的值,并与hidden的值作判断 var hid_val = document.getElementById('a').value; var obj = document.getElementById('aa'); for(var i = 0; i < o...

网站地图

All rights reserved Powered by www.ctrt.net

copyright ©right 2010-2021。
www.ctrt.net内容来自网络,如有侵犯请联系客服。zhit325@qq.com