IE's toLocaleString has strange characters in results

后端 未结 5 1264
不知归路
不知归路 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:43

    It turns out you can't see them, but IE's Date.toLocaleString is apparently including left-to-right marks in it (U+200E):

    8<200E>/<200E>21<200E>/2014<200E> <200E> 9<200E>:<200E>16<200E>:<200E>:18<200E> <200E>AM
    

    awesome. I guess it is time to submit a bug to IE?

提交回复
热议问题