SOURCE

//对象单元的删除
//delete object.属性

var obj = { name: 'xiaoming', age: 22, number: '007', score: 99 };


//先遍历一遍
for(per in obj)
{document.write(obj[per] + '<br />');}  

document.write('<hr />');//分隔符

//遍历一遍后,删除
delete obj.name;

//删除以后,再遍历一遍
for(per in obj)
{document.write(obj[per] + '<br />');}  
console 命令行工具 X clear

                    
>
console