qweweretrt515
V2EX  ›  问与答

前端问题,有了 observable,是不是基本可以淘汰 promise 了?

  •  
  •   qweweretrt515 · Apr 3, 2017 · 3260 views
    This topic created in 3357 days ago, the information mentioned may be changed or developed.

    最近网上看了一个文章,都是说 observable 比 promise 更好

    所以想问问大家, 是不是都选 observable

    yyfearth
        1
    yyfearth  
       Apr 4, 2017   ❤️ 1
    虽然 observable 很多时候比 promise 强大很多
    但是 promise 的浏览器集成好

    而且 当你用过 async await 后 你会觉得 很多情况下 没必要用 observable 了
    而 async await 就是用的 promise
    qweweretrt515
        2
    qweweretrt515  
    OP
       Apr 4, 2017
    @yyfearth 谢谢
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2863 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 10:01 · PVG 18:01 · LAX 03:01 · JFK 06:01
    ♥ Do have faith in what you're doing.