easyui 日期框开始和结束日期

formatterDate = function(date) {        //获取系统当前x年-x月-x日
			var day = date.getDate() > 9 ? date.getDate() : "0" + date.getDate();
			var month = (date.getMonth() + 1) > 9 ? (date.getMonth() + 1) : "0"
			+ (date.getMonth() + 1);
			return date.getFullYear() + '-' + month + '-' + day;
		};
		window.onload = function(){     //input框默认加载系统当前日期
		$('#das').datebox('setValue', formatterDate(new Date()));
		$('#dae').datebox('setValue', formatterDate(new Date()));
		}
复制代码

*   至: * bash

相关文章
相关标签/搜索