📅  最后修改于: 2022-03-11 14:56:18.506000             🧑  作者: Mango
var result = Rx.Observable.fromPromise(fetch('http://myserver.com/'));
result.subscribe(x => console.log(x), e => console.error(e));