作用:私有变量
function privateVariable() {
var value;
this.setValue = function(value) {
value= value;
};
this.getValue = function() {
return value;
};
}
var x = new privateVariable();
x.setName("abcd");
console.log(x.value); //undefined
console.log(x.getValue ()); //abcd