$(‘$stdate’).datebox({ formatter: function(date){ return date.getFullYear()+’-'+(date.getMonth()+1)+’-'+date.getDate(); } });
datebox设置默认值
$("#stdate").datebox('setValue', '2012-01-01');
easyui加载时渲染
$(function() {}
easyui获取和设置控件值
$('#tbnpwd').val('在这里设置值'); $('#tbnpwd').val();//获取值
easyui里面的json数据只能用双引号,用单引号会无效,具体原因不明