cvs.drawImage(this,0,0)的this
this该怎么理解?
imgObj.onload = function(){
var cvs = $('#cvs_'+this.index)[0].getContext('2d');
cvs.width = this.width;
cvs.height = this.height;
cvs.drawImage(this,0,0);
}
this该怎么理解?
imgObj.onload = function(){
var cvs = $('#cvs_'+this.index)[0].getContext('2d');
cvs.width = this.width;
cvs.height = this.height;
cvs.drawImage(this,0,0);
}
2016-07-14
举报