<html>
<body>
<h2>JavaScript</h2>
<p>可以通过将值设置为 <b>undefined</b> 来清空对象。</p>
<p id="demo"></p>
<script>
var person = {firstName:"John", lastName:"Doe", age:50, eyeColor:"blue"};
person = undefined;
document.getElementById("demo").innerHTML = person;
</script>
</body>
</html>