订阅时出错。订阅不是一个功能

Getting error while subscribing. subscribe is not a function

  var a$= from(['aaaa','bbbb'])
        var b$=from(ajax(`https://api.myjson.com/bins/no8tj`))
        a$.pipe(mergeMap(post => b$).subscribe(res => console.log(res)));

我正在尝试使用 mergeMap 运算符。但是在订阅时我收到一个错误 'TypeError: Object(...)(...).subscribe is not a function'。我正在尝试以下 link 中的这个示例 https://netbasal.com/rxjs-six-operators-that-you-must-know-5ed3b6e238a0

您应该订阅 pipe() 而不是 mergeMap 试试

a$.pipe(mergeMap(post => zip(b$,of(post)))).subscribe(res => console.log(res));