【发布时间】:2011-06-27 04:04:31
【问题描述】:
function Foo() {
var myPrivateBool = false,
myOtherVar;
this.bar = function(myOtherVar) {
myPrivateBool = true;
myOtherVar = myOtherVar; // ?????????????????
};
}
如何设置私有变量 myOtherVar?
【问题讨论】:
标签: javascript private javascript-objects