如何在这里修改图片大小?:
var image = new Image();
image.src = 'http://www.ziiweb.com/images/logo.png';
image.width = 200; //this is not modifying the width of the image
$('canvas').css({
background: 'url(' + image.src + ')'
});
<script src="https://ajax.googleapis.