修复了按日期排序错乱的问题

2021-11-18 小微发布 产品更新 浏览(1918)

这是Intl.Collator函数造成的排序问题,

官方文档:
(Note that the results shown in the code above can vary between browsers and browser versions. This is because the values are implementation-specific. That is, the specification requires only that the before and after values are negative and positive.)

翻译的意思就是
(请注意,上面代码中显示的结果可能因浏览器和浏览器版本而异。 这是因为这些值是特定于实现的。 即规范只要求前后值是负值和正值)

    var de = new Intl.Collator(void 0,{
        numeric: !0,
        sensitivity: "base"
    });
//
//
//   void 0, 修改为 "de" 
//
//
    var de = new Intl.Collator("de"{
        numeric: !0,
        sensitivity: "base"
    });

标签: 更新记录 

免费电子图册系统