debounceTime在angular中的使用

2019-04-16  本文已影响0人  有田春雪

debounceTime在angular中的使用

import { debounceTime } from 'rxjs/operators'

this.searchInput.valueChange
    .pipe(debounceTime(300))    // 使用管道
    .subscribe(
        // 进行相应的操作
     )
上一篇 下一篇

猜你喜欢

热点阅读