Sal*_*DIO 8 javascript closures
这是一个代码
var collection = (function (){
var x = 0;
return {
y : x,
get : function(){return x},
set : function(n) { x = n}
}
}());
collection.set(1000);
Run Code Online (Sandbox Code Playgroud)
为什么collection.y != collection.get()?