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 ((version[0] < | + | if ((version[0] <= 3 && version[1] < 9) || (version[0] == 1 && version[1] == 9 && version[2] < 1)) { |
mw.notify('We requires jQuery version 1.9.1 or higher') | mw.notify('We requires jQuery version 1.9.1 or higher') | ||
} | } | ||
}); | }); |
Revision as of 09:39, 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] <= 3 && version[1] < 9) || (version[0] == 1 && version[1] == 9 && version[2] < 1)) {
mw.notify('We requires jQuery version 1.9.1 or higher')
}
});