Object.assign正是您所需要的:// declare obj with some propsconst btn = { innerText: "initial"};// see what we haveconsole.log(JSON.stringify(btn))// assign (and re-assign) some propsObject.assign(btn, { innerText: "hello", style: { fontSize: "24px", outline: "none" }})// see what changedconsole.log(JSON.stringify(btn))