es6

1

var m = {aa: {}, b: {}}; // ---
var {aa = {}, bb = {}, cc={}} = m; // cc 的初始值

var m = {aa: {}, b: {}}; // ---
var {aa : aaa, bb = {}, cc={}} = m; // 将aa重设置为变量aaa

posted @ 2020-11-09 21:09  Running00  阅读(64)  评论(0编辑  收藏  举报