JQuery easyUI 之 datebox plugin

使用方式:

a方式:

 

 <script type="text/javascript" src="../easyloader.js"></script>

 <input id="dd" class="easyui-datebox" required="true"></input>

b方式:

步骤1.

 <script type="text/javascript" src="../easyloader.js"></script>

 <input id="dd2" type="text"></input>

步骤2. 

$(function () {
    easyloader.locale 
= 'zh_CN';    //中文后 1.2.3版本的日期自动格式为 yyyy-MM-dd。
    using("datebox",function() {
        $(
'#dd2').datebox({
            required:
true,
            formatter:
function(date){
            
var y=date.getFullYear();
            
var m=date.getMonth()+1;
            
var d=date.getDate();
            
return y+""+m+"月"+d;
        }
    });
}); 

       

posted @ 2011-07-15 14:36  nikytwo  阅读(557)  评论(0编辑  收藏  举报