iOS vs Android: different dates displayed for the same program
问题 I have a javascript code: newDate: function(days) { var newDate = new Date( parseInt(startDate) + 1*1000*3600); var date = newDate .getDate(); return date ; }, Seems like this is the part of the program that produces different results on Android and iOS. All the rest data is the same. How can it produce different results on Android vs iOS? 回答1: The Date constructor is only consistent cross-browser for the following Date formats: "2010" "2010-06" "2010-06-09" "2010-06-09T15:20:00Z" "2010-06