MCBBS Wiki欢迎您共同参与编辑!在参与编辑之前请先阅读Wiki方针

如果在编辑的过程中遇到了什么问题,可以去讨论板提问。

为了您能够无阻碍地参与编辑 未验证/绑定过邮箱的用户,请尽快绑定/验证

MCBBS Wiki GitHub群组已上线!

您可以在回声洞中发表吐槽!

服务器状态监控。点击进入

本站由MCBBS用户自行搭建,与MCBBS及东银河系漫游指南(北京)科技有限公司没有从属关系。点此了解 MCBBS Wiki 不是什么>>

用户:自由李代数/common.js:修订间差异

跳到导航 跳到搜索
无编辑摘要
无编辑摘要
标签移动版编辑 移动版网页编辑
无编辑摘要
标签移动版编辑 移动版网页编辑
第16行: 第16行:
$.ajax({url: "https://mcbbs-wiki.cn/api.php?action=query&meta=tokens&format=json&type=rollback", type: "GET", success: function(data){alert(data.query.tokens.rollbacktoken);}})}
$.ajax({url: "https://mcbbs-wiki.cn/api.php?action=query&meta=tokens&format=json&type=rollback", type: "GET", success: function(data){alert(data.query.tokens.rollbacktoken);}})}


 
function getRevIds() {
$.ajax({url: "https://mcbbs-wiki.cn/api.php?action=query&prop=revisions&titles="+ title + "&rvlimit=20&rvprop=ids&format=json", type: "GET", success: function(data){alert(data.query.pages.pageid.revisions.toString());}})}




第25行: 第26行:
title = getTitle()
title = getTitle()
res1 = "https://mcbbs-wiki.cn/wiki/Special:WhatLinksHere/" + title
res1 = "https://mcbbs-wiki.cn/wiki/Special:WhatLinksHere/" + title
 
pageid = mw.config.get("wgArticleId")
/* 电脑版  
/* 电脑版  
----------------------------------------------------------------------
----------------------------------------------------------------------
第58行: 第59行:


$('#mw-mf-page-left').append('<li class=""><button onclick="getRollbackToken();">RollbackToken</button></li>')
$('#mw-mf-page-left').append('<li class=""><button onclick="getRollbackToken();">RollbackToken</button></li>')
$('#mw-mf-page-left').append('<li class=""><button onclick="getRevIds();">getRevIds</button></li>')
我们提供服务需要使用Cookie。您使用我们的服务,即表示您同意我们使用Cookie。

导航菜单