IE's toLocaleString has strange characters in results

后端 未结 5 1263
不知归路
不知归路 2020-12-01 18:21

I\'ve run into a super strange thing that apparently is IE-specific in toLocaleString on dates.

In the IE console window:

new Date(\"201         


        
5条回答
  •  执念已碎
    2020-12-01 18:51

    I don't see this in my IE11 so it could be something to do with your settings/config in IE or your machine. For me the result is:

    "‎28‎/‎08‎/‎2014‎ ‎21‎:‎51‎:‎09" === new Date("2014-08-28T20:51:09.9190106Z").toLocaleString(); true

    Did you copy-paste the date string passed to the constructor from a web page?

    I don't think the IE team will accept it as a bug at this stage because it doesn't have clear repro steps

提交回复
热议问题