创建对象
var people=new Object(); people.name="luo"; var people={};
使用函数创建
function people(name,age){ this.name =name; this.age=age }
或用原型链
people.prototype={属性方法}; son=new people(name,20);