react-cnode
react-cnode copied to clipboard
关于对象结构赋值的默认值用法
let { tab = 'all' } = nextProps.location.query;
注意:默认值生效的条件是,对象的属性值严格等于undefined