日期:2014-05-16 浏览次数:20385 次
function test(a) {
var a = a;
// console.log(a);
this.GetA = function () {
return a;
};
this.SetA = function (a) {
a = a;
}
}
function playTest() {
var t = new test(1);
console.log(t.GetA());
t.SetA(2);
console.log(t.GetA());
t.SetA(3);
console.log(t.GetA());
}