我如何在图像的 src 中使用 {{ }}?我在 [src] 附近收到此代码错误 <ion-list> <ion-item *ngFor="let item of results| async"> <ion-thumbnail slot="start"> <ion-img [src]={{ item.qrlink }}></ion-img> </ion-thumbnail> <ion-label>{{ item.Title }}</ion-label> </ion-item></ion-list>在 page.ts 我有这个代码: submit_newcheck() { this.results = this.encryptionService.newcheck(this.checkid,this.cost,this.toname,this.tocode,this.passcode,this.date ); }它连接到这样的服务:export class EncryptionService { constructor(private http: HttpClient) { } newcheck(checkid: string ,cost: string,toname: string,tocode: string,passcode: string,date: string): Observable<any> { return this.http.get(`https://api.test.com/encrypte.php?checkid=${encodeURI(checkid)}&&cost=${encodeURI(cost)}&&toname=${encodeURI(toname)}&&tocode=${encodeURI(tocode)}&&passcode=${encodeURI(passcode)}&&date=${encodeURI(date)}`).pipe( map(results => results['Data']) ); }}
添加回答
举报
0/150
提交
取消