LLWiki正在建设中,欢迎加入我们

“User:Bhsd/widget/list.js”的版本间差异

来自LLWiki
跳转到导航 跳转到搜索
第5行: 第5行:
* @Output {Object} mw.sifdata
* @Output {Object} mw.sifdata
*/
*/
$.getJSON('/zh?title=user:bhsd/widget/list.json&action=raw&ctype=application/json', {cache: true}, x => {
$.ajax({dataType: 'json', cache: true, url: '/zh?title=user:bhsd/widget/list.json&action=raw&ctype=application/json'})
mw.sifdata = x;
.then(x => { mw.sifdata = x; });
});

2021年4月22日 (四) 06:10的版本

"use strict";
/* global mw, $ */
/**
 * @Function: 加载SIF歌曲数据
 * @Output {Object} mw.sifdata
 */
$.ajax({dataType: 'json', cache: true, url: '/zh?title=user:bhsd/widget/list.json&action=raw&ctype=application/json'})
    .then(x => { mw.sifdata = x; });