<html><body><h1>JavaScript 对象</h1><h2>Object.values() 方法</h2><p>Object.values() 返回一个对象的所有值的数组。</p><p id="demo"></p><script>const person = { firstName : "Bill", lastName : "Gates", age : 19, eyeColor : "blue"};// 获取对象的值并转换为数组let text = Object.values(person);// 显示结果document.getElementById("demo").innerHTML = text;</script></body></html>