我正在尝试为票务销售做一个可变长度的输入表单,此时我想为客人构建名称和性别的许多输入表单,但我想不出如何做必须的id独特的使用这种方法。我目前正在尝试使用此功能并发生错误:
未处理的Promise拒绝:模板解析错误:解析器错误: 意外的令牌=在第24列[允许客人的客人; i = index] in SellTicketComponent @ 315:22("" #f =" ngForm"> - > ] * ngFor ="让客人来宾; i = index"> "):SellTicketComponent @ 315:22分析器错误:意外的令牌=在第24列的[让客人的客人; i = index] in SellTicketComponent @ 315:22("] id =" {{guest [0]}}" [(ngModel)] ="旅客[0]" na"):SellTicketComponent @ 320:28
<h5>How many tickets would you like? </h5>
<input type="number" name="numGuests" min="1" max="10" [(ngModel)]="numPeople">
<div *ngIf="numPeople > 1">
<form (ngSubmit)="onSubmit(f)" #f="ngForm">
<!--<div ngModelGroup="eventCreationData">-->
<div *ngFor="let guest of guests; i = index">
<div class="form-group">
<label> Full name of guest: </label>
<input type="text"
class="form-control"
id="{{guest[0]}}"
[(ngModel)]="guest[0]"
name="{{guest[0]}}"
required>
</div>
<!--</div>-->
<div class="form-group">
<label> Gender: </label>
<select
class="form-control"
id="{{i}}"
[(ngModel)]="guest[1]"
name="{{i}}"
required>
<option *ngFor="let i of genders">
{{i}}
</option>
</select>
</div>
</div>
</form>
答案 0 :(得分:2)
缺少Sub TransferQuoteToMasterQuoteTest()
Dim LastRow As Long
Dim R As Long
R = 16
Range("I5:I9").Copy
Worksheets.Add.Name = "MySheet"
Range("A1").PasteSpecial Transpose:=True
Sheets("Sheet1").Select
Range("K5").Copy
Sheets("MySheet").Select
Range("F1").PasteSpecial
Sheets("Sheet1").Select
Range("K11:K12").Copy
Sheets("MySheet").Select
Range("G1").PasteSpecial Transpose:=True
Range("I1").Select
Sheets("Sheet1").Select
Range("B16").Select
Do While Not IsEmpty(Worksheets("Sheet1").Range("B" & R))
Worksheets("Sheet1").Range("B" & R & ":M" & R).Copy Worksheets("MySheet").Range("I" & (R - 15) & ":T" & (R - 15))
R = R + 1
Loop
Worksheets("MySheet").Select
LastRow = Worksheets("MySheet").Range("I1").End(xlDown).Row
With Worksheets("MySheet").Range("A1")
.AutoFill Destination:=Range("A1:H" & LastRow&)
End With
End Sub
let