MediaWiki:Common.js:修订间差异
MediaWiki界面页面
更多操作
无编辑摘要 |
无编辑摘要 |
||
| 第57行: | 第57行: | ||
format: 'json' | format: 'json' | ||
}).done(function (data) { | }).done(function (data) { | ||
var total = (data. | // --- 修改点:适配您的 API 返回结构 --- | ||
var total = 0; | |||
if (data && data.wordcounter && data.wordcounter.totals) { | |||
total = data.wordcounter.totals.totalWords || 0; | |||
} | |||
// 缓动函数(前快后慢) | // 缓动函数(前快后慢) | ||