i**********p 发帖数: 1341 | 1 我要输入公司league 1/31/2014的一部分成绩,
结果老是说Event Date cannot be a future date
只好翻了下source 貌似是这样:
lastEvent="1/31/2014"
eventDate="1/31/2014"
curDate="2/1/2014"
if(dateStringCompare(lastEvent, eventDate) <= 0) {
if(dateStringCompare(eventDate, curDate) <= 0)
document.frmSubmitResults.submit();
else
alert("Event Date cannot be a future date");
}
估计dateStringCompare默认把2/1/2014 interpret成1月2号了?
fyi:
dateStringCompare("1/31/2014", "2/1/2014")
answer: 1
dateStringCompare("1/31/2014", "2/31/2014")
... 阅读全帖 |
|