質問編集履歴
2
追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -53,4 +53,6 @@
|
|
53
53
|
},function(error){
|
54
54
|
console.log("実引数error-a",error);
|
55
55
|
});
|
56
|
-
```
|
56
|
+
```
|
57
|
+
|
58
|
+
https://ja.stackoverflow.com/questions/47216/%E3%81%A9%E3%81%AE%E9%83%A8%E5%88%86%E3%81%8C%E5%89%8D%E5%9B%9E%E3%81%AE%E9%9D%9E%E5%90%8C%E6%9C%9F%E9%80%9A%E4%BF%A1%E3%81%AA%E3%81%AE%E3%81%8B
|
1
ソース追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -17,4 +17,40 @@
|
|
17
17
|
console.log(error);
|
18
18
|
})
|
19
19
|
```
|
20
|
-
ここで疑問なのですが、書籍の言う前回の非同期通信というのは、ソース中のどれなのでしょうか。
|
20
|
+
ここで疑問なのですが、書籍の言う前回の非同期通信というのは、ソース中のどれなのでしょうか。
|
21
|
+
|
22
|
+
試したソース
|
23
|
+
```javascript
|
24
|
+
let asyncFuncA = function(qqq,eee) {
|
25
|
+
//qqqは、入れ子になっているほうの関数
|
26
|
+
qqq("asyncFuncA関数の仮引数であるqqq関数を実行");
|
27
|
+
eee("asyncFuncA関数の仮引数であるeee関数を実行");
|
28
|
+
console.log("qqq-a:",qqq,"eee-a:",eee);
|
29
|
+
};
|
30
|
+
let asyncFuncB = function(qqq,eee) {
|
31
|
+
qqq("asyncFuncB関数の仮引数であるqqq関数を実行");
|
32
|
+
eee("asyncFuncB関数の仮引数であるeee関数を実行");
|
33
|
+
console.log("qqq-b:",qqq,"eee-b:",eee);
|
34
|
+
};
|
35
|
+
let asyncFuncC = function(qqq,eee) {
|
36
|
+
qqq("asyncFuncC関数の仮引数であるqqq関数を実行");
|
37
|
+
eee("asyncFuncC関数の仮引数であるeee関数を実行");
|
38
|
+
console.log("qqq-c:",qqq,"eee-c:",eee);
|
39
|
+
};
|
40
|
+
|
41
|
+
asyncFuncA(function(a){
|
42
|
+
console.log("実引数a",a);
|
43
|
+
asyncFuncB(function(b){
|
44
|
+
console.log("実引数b",b);
|
45
|
+
asyncFuncC(function(c){
|
46
|
+
console.log("実引数c",c);
|
47
|
+
},function(error){
|
48
|
+
console.log("実引数error-c",error);
|
49
|
+
});
|
50
|
+
},function(error){
|
51
|
+
console.log("実引数-error-b",error);
|
52
|
+
});
|
53
|
+
},function(error){
|
54
|
+
console.log("実引数error-a",error);
|
55
|
+
});
|
56
|
+
```
|