Object doesn't support property or method 'entries'

后端 未结 4 1140
慢半拍i
慢半拍i 2021-01-07 18:00

I am working with the FormData object, while my code works well on Chrome, Microsoft Edge spits out the following error message Object doesn\'t support property or met

4条回答
  •  伪装坚强ぢ
    2021-01-07 18:53

    If you're in an Angular App please add this line to your polyfills.ts file

    import 'core-js/es7/object';
    

    It will import all the new methods on Object, including entries

提交回复
热议问题