1 $(document).ready(function() { 2 var arrT = []; 3 var tt = "{0}:{1}"; 4 for (var i = 0; i < 24; i++) { 5 arrT.push({ text: StrFormat(tt, [i >= 10 ? i : "0" + i, "00"]) }, { text: StrFormat(tt, [i >= 10 ? i : "0" + i, "30"]) }); 6 } 7 $("#START_TIME").dropdown({ 8 dropheight: 200, 9 dropwidth: 60, 10 selectedchange: function() { }, 11 items: arrT 12 }); 13 $("#END_TIME").dropdown({ 14 dropheight: 200, 15 dropwidth: 60, 16 selectedchange: function() { }, 17 items: arrT 18 }); 19 }
时间: 2024-10-12 21:57:19