如何从jqx小部件网格中选择最大日期
21/10/2016 20/11/2016 22/10/2016
201/11/2016
答案 0 :(得分:0)
$。each(data1,function(idx,value){dts = $ .jqx.dataFormat.formatdate(value.Date,'yyyy / MM / dd',$('#jqxgrid2')。jqxGrid('gridlocalization ')); maxDate = max(dts);});
function max(dt){var dates = []; dates.push(new Date(dt))var maxDate = new Date(Math.max.apply(null,dates)); return maxDate; }