40 275
ediciones
m (oops) |
m (try this) |
||
format: "json",
prop: "categories",
indexpageids: true,
cllimit: "max",
generator: "categorymembers",
gcmtype: "page",
}).then(function (response) {
const all = {}
console.log(response)▼
for (const id of response.query.pageids) {
const page = response.query.pages[id]
all[page.title] = page.categories.map(o => o.title)
}
})
|