为了方便用户使用,当用户输入完查询条件,回车就可以查询。
Angular4——回车事件(change)


解决:

(change)=""   // ""里放你要查询的方法

实例:

<input type="text" nz-input placeholder="请输入课程/学号"  maxlength="20" [(ngModel)]="searchContent"
    (change)="searchInfo()" >

效果:
Angular4——回车事件(change)

相关文章:

  • 2021-08-04
  • 2022-03-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-11
  • 2022-02-16
  • 2022-02-11
  • 2021-07-02
相关资源
相似解决方案