angularjs实现利用第一次http请求结果发起第二次http请求,不想嵌套着写,怎么优雅实现?
迷茫2017-05-15 16:56:48
To use promise
, you can read an article I wrote before, I hope it can help you, promise.
怪我咯2017-05-15 16:56:48
http://stackoverflow.com/questions/9432587/what-is-the-correct-way-to-chain-async-calls-in-javascript