1.ios 时间显示NAN 把中横线换成斜杠 new Date("2017-11-23 16:58:51".replace(/-/g,'/')) 转载于:https://www.cnblogs.com/Doduo/p/7885819.html