Site Notice

hello, world

Difference between revisions of "User:机智的小鱼君/common.js"

From Project-EPB Commons
([InPageEdit] 没有编辑摘要)
Line 1: Line 1:
 
mw.loader.load('https://common.wjghj.cn/js/InPageEdit-advance');
 
mw.loader.load('https://common.wjghj.cn/js/InPageEdit-advance');
 +
function quickDiff(param) {
 +
  if (param === undefined) param = {};
 +
  param.prop = 'diff|diffsize|rel|ids|title|user|comment|parsedcomment|size';
 +
  new mw.Api().post(param).then(function(data){
 +
 +
  }).fail(function(){
 +
 +
  });
 +
}

Revision as of 21:32, 22 November 2019

mw.loader.load('https://common.wjghj.cn/js/InPageEdit-advance');
function quickDiff(param) {
  if (param === undefined) param = {};
  param.prop = 'diff|diffsize|rel|ids|title|user|comment|parsedcomment|size';
  new mw.Api().post(param).then(function(data){

  }).fail(function(){

  });
}