首页 > 其他 > 详细

angular2事件触发

时间:2017-10-20 21:27:38      阅读:632      评论:0      收藏:0      [点我收藏+]
输入框输入值触发Select()方法。
<input type="text" name="code" [(ngModel)]="code" (keyup)="Select()">

输入框输入查询值后,点击Enter键触发Select()方法。
<input type="text" name="code" [(ngModel)]="code" (keyup.enter)="Select()">

选中下拉框值触发search()方法,filter="filter"支持输入值的模糊查询。
<p-dropdown [options]="customercodeList"  [(ngModel)]="customermanage.customercode" name="customercode" filter="filter" (onChange)="search()" placeholder="请选择">
{{customercodeList.label}}
</p-dropdown>



angular2事件触发

原文:http://www.cnblogs.com/zxg-6/p/7701350.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!