Site Notice
hello, world
Difference between revisions of "User:机智的小鱼君/common.js"
From Project-EPB Commons
([InPageEdit] 没有编辑摘要) |
([InPageEdit] 没有编辑摘要) |
||
Line 2: | Line 2: | ||
function quickDiff(param) { | function quickDiff(param) { | ||
if (param === undefined) param = {}; | if (param === undefined) param = {}; | ||
+ | param.action = 'compare'; | ||
param.prop = 'diff|diffsize|rel|ids|title|user|comment|parsedcomment|size'; | param.prop = 'diff|diffsize|rel|ids|title|user|comment|parsedcomment|size'; | ||
+ | param.format = 'json'; | ||
new mw.Api().post(param).then(function(data){ | new mw.Api().post(param).then(function(data){ | ||
Revision as of 21:36, 22 November 2019
mw.loader.load('https://common.wjghj.cn/js/InPageEdit-advance');
function quickDiff(param) {
if (param === undefined) param = {};
param.action = 'compare';
param.prop = 'diff|diffsize|rel|ids|title|user|comment|parsedcomment|size';
param.format = 'json';
new mw.Api().post(param).then(function(data){
}).fail(function(){
});
}