像这个代码vm.dev=Object.assign({},vm.dev,{'sex':'man'});它是怎么赋值的按道理讲左边是一个对象,右边也是一个对象,怎么能这样赋值的呢,在控制台中这样弄,会报错{name:'lc'}=Object.assign({},{name:'lc'},{age:30})VM1186:1UncaughtSyntaxError:Unexpectedtoken=
按道理讲左边是一个对象,右边也是一个对象,怎么能这样赋值的呢,在控制台中这样弄,会报错{name:'lc'}=Object.assign({},{name:'lc'},{age:30})VM1186:1UncaughtSyntaxError:Unexpectedtoken=
{name:'lc'}=Object.assign({},{name:'lc'},{age:30})VM1186:1UncaughtSyntaxError:Unexpectedtoken=
VM1186:1UncaughtSyntaxError:Unexpectedtoken=
扬帆大鱼
相关分类