質問編集履歴
2
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -109,3 +109,7 @@
|
|
109
109
|
});
|
110
110
|
|
111
111
|
```
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
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
ソース追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -37,3 +37,75 @@
|
|
37
37
|
```
|
38
38
|
|
39
39
|
ここで疑問なのですが、書籍の言う前回の非同期通信というのは、ソース中のどれなのでしょうか。
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
試したソース
|
44
|
+
|
45
|
+
```javascript
|
46
|
+
|
47
|
+
let asyncFuncA = function(qqq,eee) {
|
48
|
+
|
49
|
+
//qqqは、入れ子になっているほうの関数
|
50
|
+
|
51
|
+
qqq("asyncFuncA関数の仮引数であるqqq関数を実行");
|
52
|
+
|
53
|
+
eee("asyncFuncA関数の仮引数であるeee関数を実行");
|
54
|
+
|
55
|
+
console.log("qqq-a:",qqq,"eee-a:",eee);
|
56
|
+
|
57
|
+
};
|
58
|
+
|
59
|
+
let asyncFuncB = function(qqq,eee) {
|
60
|
+
|
61
|
+
qqq("asyncFuncB関数の仮引数であるqqq関数を実行");
|
62
|
+
|
63
|
+
eee("asyncFuncB関数の仮引数であるeee関数を実行");
|
64
|
+
|
65
|
+
console.log("qqq-b:",qqq,"eee-b:",eee);
|
66
|
+
|
67
|
+
};
|
68
|
+
|
69
|
+
let asyncFuncC = function(qqq,eee) {
|
70
|
+
|
71
|
+
qqq("asyncFuncC関数の仮引数であるqqq関数を実行");
|
72
|
+
|
73
|
+
eee("asyncFuncC関数の仮引数であるeee関数を実行");
|
74
|
+
|
75
|
+
console.log("qqq-c:",qqq,"eee-c:",eee);
|
76
|
+
|
77
|
+
};
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
asyncFuncA(function(a){
|
82
|
+
|
83
|
+
console.log("実引数a",a);
|
84
|
+
|
85
|
+
asyncFuncB(function(b){
|
86
|
+
|
87
|
+
console.log("実引数b",b);
|
88
|
+
|
89
|
+
asyncFuncC(function(c){
|
90
|
+
|
91
|
+
console.log("実引数c",c);
|
92
|
+
|
93
|
+
},function(error){
|
94
|
+
|
95
|
+
console.log("実引数error-c",error);
|
96
|
+
|
97
|
+
});
|
98
|
+
|
99
|
+
},function(error){
|
100
|
+
|
101
|
+
console.log("実引数-error-b",error);
|
102
|
+
|
103
|
+
});
|
104
|
+
|
105
|
+
},function(error){
|
106
|
+
|
107
|
+
console.log("実引数error-a",error);
|
108
|
+
|
109
|
+
});
|
110
|
+
|
111
|
+
```
|