var dateStr = "2016-01-19 00:00:00"; var d = new Date(dateStr.replace(/-/g, '/'));
or
参考:http://stackoverflow.com/questions/13363673/javascript-date-is-invalid-on-ios