x
 
<!DOCTYPE html>
<html>
<body>
<h1>JavaScript 显示对象</h1>
<p>显示 JavaScript 对象将输出: [object Object]。</p>
<p id="demo"></p>
<script>
const person = {
  name: "Bill",
  age: 19,
  city: "Seattle"
};
document.getElementById("demo").innerHTML = person;
</script>
</body>
</html>