質問編集履歴
1
追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -34,6 +34,24 @@
|
|
34
34
|
|
35
35
|
|
36
36
|
|
37
|
+
たとえば下記のような記述でも処理は同様でしょうか?
|
37
38
|
|
39
|
+
```javascript
|
38
40
|
|
41
|
+
fetch('flowers.jpg').then(function(response) {
|
42
|
+
|
43
|
+
return response.blob();
|
44
|
+
|
45
|
+
}).then(function(myBlob) {
|
46
|
+
|
47
|
+
var objectURL = URL.createObjectURL(myBlob);
|
48
|
+
|
49
|
+
myImage.src = objectURL;
|
50
|
+
|
51
|
+
}).catch(function(error) {
|
52
|
+
|
39
|
-
|
53
|
+
console.log('There has been a problem with your fetch operation: Network response was not ok.;
|
54
|
+
|
55
|
+
});
|
56
|
+
|
57
|
+
```
|