var t = '2014-02-26T21:18:02.497' var a = t.replace(/(d{4})-(d{2})-(d{2})T(.*)?.(.*)/, "$1/$2/$3 $4") new Date(a)
这样转换之后 ie就可以认识时间对象了,不然就是NAN
var t = '2014-02-26T21:18:02.497' var a = t.replace(/(d{4})-(d{2})-(d{2})T(.*)?.(.*)/, "$1/$2/$3 $4") new Date(a)
这样转换之后 ie就可以认识时间对象了,不然就是NAN