Easy ui DateBox 控件格式化显示操作

//Easy ui  datebox 控件
<input class="easyui-datebox" name="StartTime" id="StartTime" style="width:100px;" required="true" />
//在页面加载事件中绑定这个格式化方法 
 $(function () {
           $('#StartTime').datebox({
              formatter: function (date) { return date.format("yyyy"); },
          })
   ;} 

 

posted @ 2013-08-14 17:14  Elite_Y  阅读(2936)  评论(0编辑  收藏  举报