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

“MediaWiki:Gadget-inspect.js”的版本间差异

跳转到导航 跳转到搜索
删除58字节 、​ 2021年1月9日 (六) 21:41
无编辑摘要
summary: wgULS( '使用[[help:小工具/页面文本对比查看器|页面/文本对比查看器]]快速编辑',
'使用[[help:小工具/页面文本对比查看器|頁面/文本對比察看器]]快速編輯'
) }, section === undefined ? {section: section} : {section: section}), isBackup).then(function() { location.reload(); },
function(reason) { btns[0].setDisabled( reason == 'editConflict' ); }); // 编辑冲突必须刷新页面,不应重复提交
}), new OO.ui.ButtonWidget({label: wgULS('预览', '預覽')}).on('click', function() {
console.log('API request: 请求预览');
const now = mw.now();
api.parse(editor.getValue(), $.extend({title: page, uselang: lang, disablelimitreport: 1, disableeditsection: 1})
disableeditsection: 1}, section === undefined ? {section: section} : {})).then(function(html) {
console.log('End API request: 已生成预览,用时 ' + (mw.now() - now) + ' ms');
if ($.contains( $content[0], $original[0] )) { $original.after( $placeholder ).detach(); }
16,874

个编辑

导航菜单