【发布时间】:2022-12-09 00:53:13
【问题描述】:
当我那样使用它时非常容易
const Object = {
property: propertyFromAnotherObject.method
}
但我想用我自己的方法使用这种方法
myOwnMethod: () => {
localStorage.setItem('Storage', null);
}
我的连接尝试以失败告终。
MyOwnProperty: () => {
localStorage.setItem('Storage', null);
propertyFromAnotherObject.method },
【问题讨论】:
标签: reactjs