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

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

跳转到导航 跳转到搜索
 
Object.fromEntries = Object.fromEntries || function(entries) {
if (!Array.isArray(typeof entries === 'object' && Symbol.iterator in entries)) {
throw new TypeError('Object.fromEntries的polyfill只接受数组iterable作为参数!');
}
var obj = {};
Array.from(entries).forEach(function(entry) {
obj[entry[0]] = entry[1];
});