// 解决图片跨域
//直接读成blob文件对象getImage:function (url,imgId) {var xhr = new XMLHttpRequest();xhr.open('get', url, true);xhr.responseType = 'blob';xhr.onload = function () {if (this.status == 200) {document.getElementById(imgId).src = URL.createObjectURL(this.response);}};xhr.send(null);}
