datetime字符串中含T

json序列化datetime类型,返回给前端进行展示,字符串带T

例如:var time = 2018-08-08T09:07:04.767  =>  time.substr(0, 16).replace("T", " ")    =>  2018-08-08 09:07

原文地址:https://www.cnblogs.com/bjhblogs/p/9617289.html