new Date(“2012-02-22 12:00:00”)这种形式,在ios里不生效。显示Invalid Date
解决方法:将-替换为/即可。即new date(“2012/02/22 12:00:00”)。