//定义对象使用命名空间
var car = {
color:"blue",
whells:4,
run:function(){
shows()
}
};
var shows = function(){ alert("颜色:"+car.color);};
//shows();
//car.run()
//定义对象使用命名空间
var car = {
color:"blue",
whells:4,
run:function(){
shows()
}
};
var shows = function(){ alert("颜色:"+car.color);};
//shows();
//car.run()