标签:diff cee arc new 操作方法 coder start mode tar
1、var beginDate = new Date($("#InvoiceStartTime").val());
var endDate = new Date($("#InvoiceEndTime").val());
beginDate.setDate(beginDate.getDate()-1);
var diffYear = endDate.getFullYear() - beginDate.getFullYear();
if ($("#InvoiceViewModel_ContractPeriod").val() == diffYear && beginDate.getMonth() === endDate.getMonth()
&& beginDate.getDate() === endDate.getDate()) {}
2、js中date的操作方法 http://www.w3school.com.cn/jsref/jsref_obj_date.asp
3、自定义的date操作类 http://www.cnblogs.com/sunnycoder/archive/2010/03/16/1687641.html
标签:diff cee arc new 操作方法 coder start mode tar
原文地址:http://www.cnblogs.com/taoshengyujiu/p/6072087.html