<script>
var setAge = function (newAge) {
this.age = newAge;
};
var bob = new Object();
bob.age = 30;
bob.setAge = setAge;
var susan = new Object();
susan.age = 25;
susan.setAge = setAge;
susan.setAge(35);
console.log(susan.setAge(35));
console.log(susan.age);
</script>
http://i.imgur.com/FR0GjjZ.jpg
想问一下
为啥第二行印的出
第一行无法呢
谢谢