用户:RedDragon/Test2:修订间差异
来自Rizline中文维基
更多操作
小 |
小 |
||
| 第38行: | 第38行: | ||
const apiUrl = 'https://rizwiki.cn/api.php'; | const apiUrl = 'https://rizwiki.cn/api.php'; | ||
fetch( | fetch('https://rizwiki.cn/api.php?action=parse&page=曲目列表&prop=text&format=json') | ||
.then(response => response.json()) | .then(response => response.json()) | ||
.then(data => { | .then(data => { | ||
| 第87行: | 第87行: | ||
const apiUrl = baseUrl + '/api.php' | const apiUrl = baseUrl + '/api.php' | ||
fetch( | fetch('https://rizwiki.cn/api.php?action=parse&page=' + encodeURIComponent(song.title) + '&prop=text&format=json') | ||
.then(response => response.json()) | .then(response => response.json()) | ||
.then(data => { | .then(data => { | ||