
UPD :现在已成为ES2018的一部分
可以通过 非标准化 但属性扩展的语法来稍微改善它:
return { ...state, notificationBar: { ...state.notificationBar, open: true, },};欢迎分享,转载请注明来源:内存溢出

UPD :现在已成为ES2018的一部分
可以通过 非标准化 但属性扩展的语法来稍微改善它:
return { ...state, notificationBar: { ...state.notificationBar, open: true, },};欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)