无法访问事件处理程序

时间:2017-02-23 12:51:00

标签: javascript angular typescript filereader eventhandler

我正在事件处理程序中运行我的代码来访问使用this定义但无法访问的对象的属性:

  name={
      image:""
     }
      reader.onloadend=function(){
       final=this.result;
      imga.src=final;
      }
      reader.readAsDataURL(files);

0 个答案:

没有答案