js 中 const {xx1, xx2} = obj;的写法

56 阅读1分钟

js 中 const {xx1, xx2} = obj;的写法:

这种就等价于

let xx1 = obj.xx1;

let xx2 = obj.xx2;