【发布时间】:2017-08-02 05:35:55
【问题描述】:
export class AppComponent {
title = 'app';
bttnclick(){
var a;
a=(<HTMLInputElement>document.getElementById('browse1')).value
console.log(a); //contains the name of image
(<HTMLInputElement>document.getElementById('image2')).value=a;
}
}
我是这个领域的初学者,我想通过改变浏览框中的值来改变图像源。
【问题讨论】:
标签: html angular material-design