質問編集履歴
1
質問の不備を修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -46,11 +46,19 @@
|
|
46
46
|
|
47
47
|
|
48
48
|
|
49
|
-
//##【質問】外側のPromiseの結果を内側のPromise loadAnotherthingの引数として利用し
|
49
|
+
//##【質問】外側のPromiseの結果を内側のPromise loadAnotherthingの引数として利用し、
|
50
50
|
|
51
|
-
|
51
|
+
// 処理対象(targetB)を処理したい
|
52
52
|
|
53
|
+
var targetA; //処理対象A
|
54
|
+
|
55
|
+
var targetB; //処理対象B
|
56
|
+
|
57
|
+
:
|
58
|
+
|
59
|
+
loadSomething(targetA).then(function(something) {
|
60
|
+
|
53
|
-
loadAnotherthing(something).then(function(another) {
|
61
|
+
loadAnotherthing(targetB, something).then(function(another) {
|
54
62
|
|
55
63
|
DoSomethingOnThem(another);
|
56
64
|
|