创建对象的时候抛出如下异常
Cannot assign to read only property 'name' of function 'function Object() { [native code] }'
let dict: any = Object;
方法改造后即可
let dict: any = Object.assign({});
以上便是此次分享的全部内容,希望能对大家有所帮助!
创建对象的时候抛出如下异常
Cannot assign to read only property 'name' of function 'function Object() { [native code] }'
let dict: any = Object;
方法改造后即可
let dict: any = Object.assign({});
以上便是此次分享的全部内容,希望能对大家有所帮助!