var dateStart = $('input[id=orderdate-0]').val();
var timeStart = $('input[id=ordertime-0]').val();
var dateEnd = $('input[id=orderdate-1]').val();
var timeEnd = $('input[id=orderime-1]').val();
var startDate = new Date(dateStart + " " + timeStart);
var endDate = new Date(dateEnd + " " + timeEnd);
startDate.getTime();
alert(startDate);
我正在尝试将“2013-12-11”的 dateStart 和“11:00”的 timeStart 结合起来,并尝试从中生成日期。但我会收到无效日期等警报。代码有什么问题吗?