js 对象的 key 是个变量时, 如果赋值 2020-07-17 本文已影响0人 xcyzjs // react 中 this.setState(key, value){ [key]: value } 参考自 csdn: