【问题标题】:HTML5 Input type Date on FF - using Angular/TypescriptFF 上的 HTML5 输入类型日期 - 使用 Angular/Typescript
【发布时间】:2017-05-31 10:31:44
【问题描述】:

是否存在不使用任何第三方的纯 Angular/Typescript 代码库。 FF & IE11 有问题。 Chrome很好,可以读取值,但是使用HTML5输入日期时日历不显示。

【问题讨论】:

    标签: html angular typescript


    【解决方案1】:

    您需要在 polyfills.ts 中取消注释以下导入,或者您需要导入 shim.js。

    /** IE9, IE10 and IE11 requires all of the following polyfills. **/
    import 'core-js/es6/symbol';
    import 'core-js/es6/object';
    import 'core-js/es6/function';
    import 'core-js/es6/parse-int';
    import 'core-js/es6/parse-float';
    import 'core-js/es6/number';
    import 'core-js/es6/math';
    import 'core-js/es6/string';
    import 'core-js/es6/date';
    import 'core-js/es6/array';
    import 'core-js/es6/regexp';
    import 'core-js/es6/map';
    import 'core-js/es6/set';
    

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-12-31
    • 2015-11-17
    • 1970-01-01
    • 1970-01-01
    • 2015-09-06
    相关资源
    最近更新 更多