level 1
import { interval } from 'rxjs';// Create an Observable that will publish a value on an intervalconst secondsCounter = interval(1000);// Subscribe to begin publishing valuessecondsCounter.subscribe(n => console.log(`It's been ${n} seconds since subscribing!`));
已经找到这个解决
2018年07月21日 10点07分