fromPromise
fromPromise()接收一个promise实例
promise1:Promise<string>=new Promise(resolve=>resolve("hello world"));
constructor() {
Observable.fromPromise(this.promise1).subscribe(i=>console.log(i))
}
You can change the world with your heart,even a lot of changes sometimes unless you won't geiv up....