質問編集履歴
1
不足コードを追記しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
|
8
8
|
|
9
|
-
```j
|
9
|
+
```indexjs
|
10
10
|
|
11
11
|
function newsGetter(dom,rest_url) {
|
12
12
|
|
@@ -141,3 +141,21 @@
|
|
141
141
|
};
|
142
142
|
|
143
143
|
```
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
```indexhtml
|
148
|
+
|
149
|
+
<script src="index.js"></script>
|
150
|
+
|
151
|
+
<script>
|
152
|
+
|
153
|
+
$(function() {
|
154
|
+
|
155
|
+
newsGetter("#newslist","https://example.copm/wp-json/wp/v2/posts?_embed&per_page=5");
|
156
|
+
|
157
|
+
});
|
158
|
+
|
159
|
+
</script>
|
160
|
+
|
161
|
+
```
|