Angular2 表单抛出意外字符 "EOF" ("
Angular2 forms throws Unexpected character "EOF" ("
[注意]这个问题只是为了帮助其他google犯这个错误的人,我自己添加了答案。我的问题格式很糟糕,因为我没有 want/expect 任何答案。当我给 "Answer your own question, Q/A style" -.-
打票时,以为 SO 会用标签或 smtn 标记我的问题
我正在忙着制作表格,我收到了这条错误信息:
Unexpected character "EOF" ("
Google 给了我几个结果,但其中 none 非常有用。这个问题困扰了我好久。
<div class="form-group">
<label for="details">Details</label>
<textarea formControlName="details" class="form-control" id="details" placeholder="Full details on your report"> <textarea>
</div>
<div class="form-group">
<label for="suggested_solution">Suggested Solution</label>
<textarea formControlName="suggested_solution" class="form-control" id="suggested_solution" placeholder="Your suggestion for a solution"></textarea>
</div>
<div class="form-group">
<label for="attachments">Relevant attachments</label>
<input formControlName="attachments" type="file" class="form-control" id="attachments">
</div>
<button type="submit" class="btn btn-primary" [disabled]="!form.valid">Submit</button>
</form>
我自己回答感觉有点奇怪,但如果其他人遇到类似问题,我想分享一下!基本上我的问题是文本区域:
<textarea formControlName="details" class="form-control" id="details" placeholder="Full details on your report"> <textarea>
文本区域没有关闭(我忘了末尾有一个正斜杠)。尝试从该死的错误消息中找到它。
基本上,在我看来,这个问题可能是由许多问题引起的(我读过类似 <!-- ---->
的格式不佳的评论),但对我来说是文本区域。
希望有人觉得这有用:)
[注意]这个问题只是为了帮助其他google犯这个错误的人,我自己添加了答案。我的问题格式很糟糕,因为我没有 want/expect 任何答案。当我给 "Answer your own question, Q/A style" -.-
打票时,以为 SO 会用标签或 smtn 标记我的问题我正在忙着制作表格,我收到了这条错误信息:
Unexpected character "EOF" ("
Google 给了我几个结果,但其中 none 非常有用。这个问题困扰了我好久。
<div class="form-group">
<label for="details">Details</label>
<textarea formControlName="details" class="form-control" id="details" placeholder="Full details on your report"> <textarea>
</div>
<div class="form-group">
<label for="suggested_solution">Suggested Solution</label>
<textarea formControlName="suggested_solution" class="form-control" id="suggested_solution" placeholder="Your suggestion for a solution"></textarea>
</div>
<div class="form-group">
<label for="attachments">Relevant attachments</label>
<input formControlName="attachments" type="file" class="form-control" id="attachments">
</div>
<button type="submit" class="btn btn-primary" [disabled]="!form.valid">Submit</button>
</form>
我自己回答感觉有点奇怪,但如果其他人遇到类似问题,我想分享一下!基本上我的问题是文本区域:
<textarea formControlName="details" class="form-control" id="details" placeholder="Full details on your report"> <textarea>
文本区域没有关闭(我忘了末尾有一个正斜杠)。尝试从该死的错误消息中找到它。
基本上,在我看来,这个问题可能是由许多问题引起的(我读过类似 <!-- ---->
的格式不佳的评论),但对我来说是文本区域。
希望有人觉得这有用:)