|
var today = new Date();
var month = today.getMonth();
var year = today.getFullYear();
var date1 = year + "-" + (month)+ "-" + 26;
var date2 = year + "-" + (month+1) + "-" + 25;
// alert(d1);
//this.comp('riqiData').setValue("a", justep.Date.toString(d,justep.Date.STANDART_FORMAT));
// data.setValue("fRQSJ3",justep.Date.toString(new Date(), justep.Date.STANDART_FORMAT));
// mainData.setValue('timestamp',justep.Date.toString(bizUtil.getSystemDatetime(), 'yyyy-MM-ddThh:mm:ss.fffZ'));
this.comp('riqiData').setValue("a",justep.Date.fromString(date1, 'yyyy-MM-dd')); //生成两个日期 并赋值给riqidata riqidata与input绑定
this.comp('riqiData').setValue("b",justep.Date.fromString(date2, 'yyyy-MM-dd')); //所以会默认显示 这两个日期
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
想请教 这个好像是不对 能帮忙改正下吗
|
|