【发布时间】:2017-07-18 13:28:48
【问题描述】:
我想在 angular2 中写下面的 jquery 代码。我该怎么做?
$.when($.ajax("url"), $.ajax("/url2"))
.then(myFunc, myFailure);
and
$.when( $.ajax("/req1"), $.ajax("/req2"), $.ajax("/req3") ).then(function(resp1, resp2, resp3){
// plot graph using data from resp1, resp2 & resp3
});
【问题讨论】:
标签: angular