【发布时间】:2019-07-22 22:17:15
【问题描述】:
我是 Angular 新手,我需要帮助。我需要在键盘上的回车按钮上添加操作...因此,当用户在输入字段中输入内容并决定单击回车而不是使用鼠标时,必须具有相同的结果...这意味着必须通过单击来调用此函数输入...这对你们来说足够了,所以你可以给我一些答案吗? 谢谢:)
<mat-form-field>
<input
matInput
#filterName
placeholder="Name"
type="text"
name="locationName"
id="locationName"
/>
</mat-form-field>
<mat-form-field>
<input
matInput
#filterStationType
placeholder="Type"
type="text"
name="stationType"
id="stationType"
/>
</mat-form-field>
【问题讨论】:
标签: javascript angular angular6