回答編集履歴
1
調整
test
CHANGED
@@ -21,3 +21,37 @@
|
|
21
21
|
document.querySelector('head').appendChild(sc);
|
22
22
|
|
23
23
|
```
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
# jQuery
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
```javascript
|
32
|
+
|
33
|
+
function call(jsonData) {
|
34
|
+
|
35
|
+
console.log(jsonData)
|
36
|
+
|
37
|
+
}
|
38
|
+
|
39
|
+
$(function(){
|
40
|
+
|
41
|
+
const API_URL = 'https://api.syosetu.com/novelapi/api/';
|
42
|
+
|
43
|
+
$.ajax({
|
44
|
+
|
45
|
+
url:API_URL,
|
46
|
+
|
47
|
+
type:"get",
|
48
|
+
|
49
|
+
data:{out:"jsonp",callback:"call"},
|
50
|
+
|
51
|
+
dataType:"jsonp",
|
52
|
+
|
53
|
+
});
|
54
|
+
|
55
|
+
});
|
56
|
+
|
57
|
+
```
|