1,创建js对象 ,有没有那个括号都可以
var car=new Object;
var car=new Object();
console.log(result);
function Car() {
}
Car.prototype.color = "blue";
Car.prototype.doors = 4;
Car.prototype.mpg = 25;
Car.prototype.showColor = function() {
alert(this.color);
};
var oCar1 = new Car;
var oCar2 = new Car();
console.log(oCar1.color);