mageObj.onload = function() {
var cvs = $('#cvs_' + this.index)[0];
cvs.width = picWidth;
cvs.height = picWidth;
cvs.getContext('2d').drawImage(this, 0, 0,picWidth,picWidth);
};
应该这样设置canvas吧
var cvs = $('#cvs_' + this.index)[0];
cvs.width = picWidth;
cvs.height = picWidth;
cvs.getContext('2d').drawImage(this, 0, 0,picWidth,picWidth);
};
应该这样设置canvas吧
2017-01-23