JS时间大小对比
var starttime =document.getElementById('TcElement_BDB_CheckupDate').value;
var endtime =document.getElementById('TcElement_BDB_EndBuyDate').value;
var starttimes = starttime.split('-');
var endtimes = endtime.split('-');
var starttimeTemp = starttimes[0] + '/' + starttimes[1] + '/' + starttimes[2];
var endtimesTemp = endtimes[0] + '/' + endtimes[1] + '/' + endtimes[2];
if(Date.parse(new Date(starttimeTemp))>Date.parse(new Date(endtimesTemp)))
{
SaveBid();
}
else
{
alert('资审文件提交时间要大于\n购买资审文件时间');
}