var parentObj={
name:"123456",
get_name:function(){
return this.name;
},
says:function(){
return this.saying || "2"
}
}
var SonFunction=function(){}
SonFunction.prototype=parentObj;//将parentObj赋值给原型对象
var sonObj=new SonFunction();
var name1=sonObj.get_name();//"123456"