var obj = { label : 1}
var arr = [];
arr.push(obj);
console.log(arr) // [ { label : 1}]
obj.label = 2;
console.log(arr) // [ { label : 2}]
arr.push(obj);
console.log(arr) // [ { label : 2} , { label : 2}]
obj.label = 3;
console.log(arr) // [ { label : 3} , { label : 3}]
reader.onload = function() {
......
var image = new Image();
image.src = reader.result;
image.onload = function(){
console.log(this.width, this.height);
}
}