说我有以下内容:
var Car = function() {
}
Car.prototype.config = {
color: 'red'
}
Car.prototype.color = 'red';
var car1 = new Car();
var car2 = new Car();
car1.config.color = 'green';
car1.color = 'green';
console.log(car2.config.color) //green but expected red
console.log(car2.color) //red as expected
任何人都知道为什么原型对象属性充当“静态”属性?