var obj = {};Object.defineProperty(obj, "name", {set: newVal => (document.querySelector("#name").innerHTML = newVal)});obj.name = "修改后,内容会实时渲染";//在console选项卡里面改变obj.name也会导致实时渲染