點擊編輯日期框爲空,而且日期控件不能彈出,同時日期的設置不能被獲取,以下圖app
解決辦法:ide
在頁面中,加入spa
// datagrid editor datebox 設置
$.extend($.fn.datagrid.defaults.editors, {
datebox: {
init: function(container, options){
var input = $('<input type="text">').appendTo(container);
input.datebox(options);
return input;
},
destroy: function(target){
$(target).datebox('destroy');
},
getValue: function(target){
return $(target).datebox('getValue');
},
setValue: function(target, value){
$(target).datebox('setValue', value);
},
resize: function(target, width){
$(target).datebox('resize', width);
}
}
});blog
搞定!!!get