__proto.uploaderHandler=function (files) { var self=this; var file=files[0]; var reader=new FileReader(); reader.onload=function () { this.headIcon.loadImage(this.result); } reader.readAsDataURL(file); }
是这样显示的吗?我的为何也不显示,通过html的input上传的图片,然后通过FileReader来获取图片数据,最后填充image.skin和image.loadImage()都试了还是不行