$(function(){ var curr_time = new Date(); var strDate = curr_time.getFullYear()+"-"; strDate += curr_time.getMonth()+1+"-"; strDate += curr_time.getDate()+"-"; strDate += curr_time.getHours()+":"; strDate += curr_time.getMinutes()+":"; strDate += curr_time.getSeconds(); $("#dd").datebox("setValue", strDate); });
让页面加载的时候自动获得当前时间加载到DateBox中
最新推荐文章于 2022-12-16 11:25:11 发布