标签:mac code ons console height 时间 theme fun format
<li class="clearfix"> var datetime=new Date();//获取系统当前时间
var datetimeNextYear = new Date(datetime);
datetimeNextYear.setFullYear(datetime.getFullYear()+1);
datetimeNextYear.setDate(datetimeNextYear.getDate()-1);
//日期
laydate.render({
elem: ‘#expirationDate1‘
,value: datetimeNextYear
,format: ‘yyyy-MM-dd‘
,theme: ‘#128af1‘
,done: function(value, date, endDate){
console.log(value)
var datetimeNextYear = new Date(value);
datetimeNextYear.setFullYear(datetimeNextYear.getFullYear()-1);
datetimeNextYear.setDate(datetimeNextYear.getDate()+1);
laydate.render({
elem: ‘#surveyDate1‘
,value: datetimeNextYear
,format: ‘yyyy-MM-dd‘
});
}
});
laydate.render({
elem: ‘#surveyDate1‘
,value: new Date(new Date().getTime())
,format: ‘yyyy-MM-dd‘
,theme: ‘#128af1‘
,done: function(value, date, endDate){
console.log(value)
var datetimeNextYear = new Date(value);
datetimeNextYear.setFullYear(datetimeNextYear.getFullYear()+1);
datetimeNextYear.setDate(datetimeNextYear.getDate()-1);
laydate.render({
elem: ‘#expirationDate1‘
,value: datetimeNextYear
,format: ‘yyyy-MM-dd‘
});
}
});
});
标签:mac code ons console height 时间 theme fun format
原文地址:http://blog.51cto.com/13507333/2173859