1)Javascript对象成员实验: 代码如下: var f = function d() { this.a = “a”;/*这句运行后不存在f.a也不存在d.a存在一个window.a*/ var b = “b”;/*局部变量*/ }; var o = { ff: function () { var a = “a”; /*局部变量*/ this.b = “b”; /*这句运行后存在o.b*/ } }; function Man(){ this.age = 30; }; Man.prototype.sex = 1; Man.prototype.name = function () { };