一、本周完成的工作
1. 完成样本收集界面中文件的上传。
html:
<input type="file" (change)="fileChange($event.target)">
ts:
import {
HttpClient,HttpHeaders } from '@angular/common/http';
constructor(public http: HttpClient) {
}
file: any;
fileChange(files:any) {
this.file =files.files