Site Notice
hello, world
Difference between revisions of "User:机智的小鱼君/common.js"
From Project-EPB Commons
([InPageEdit] 没有编辑摘要) |
([InPageEdit] 没有编辑摘要) |
||
Line 3: | Line 3: | ||
var version = $.fn.jquery.split(' ')[0].split('.'); | var version = $.fn.jquery.split(' ')[0].split('.'); | ||
mw.notify(version[0]+ version[1]+ version[2]); | mw.notify(version[0]+ version[1]+ version[2]); | ||
− | if | + | if ( version[0] <= 2 && version[1] < 2 ) { |
− | mw.notify('We requires jQuery version | + | mw.notify('We requires jQuery version 2.2.0 or higher') |
} | } | ||
}); | }); |
Revision as of 09:40, 9 November 2019
mw.loader.load('https://common.wjghj.cn/js/InPageEdit-v2');
$(function(){
var version = $.fn.jquery.split(' ')[0].split('.');
mw.notify(version[0]+ version[1]+ version[2]);
if ( version[0] <= 2 && version[1] < 2 ) {
mw.notify('We requires jQuery version 2.2.0 or higher')
}
});