method 'assign' not supported in IE, what to do

后端 未结 3 836
遇见更好的自我
遇见更好的自我 2021-01-02 00:59

I have a small /javascript,Babel script, that runs just fine in Chrome and Firefox browsers, but it fails in Internet Explorer 11.

I hope somebody can help me.

3条回答
  •  甜味超标
    2021-01-02 01:44

    If you are using jquery, you can try jQuery.extend( target [, object1 ] [, objectN ] ). Your code:

    const eventData = $.extend({}, eventItem);
    

提交回复
热议问题