16,874
个编辑
LLWiki正在建设中,欢迎加入我们!
(// 使用Wikiplus小工具快速编辑) 标签:移动版网页编辑 移动版编辑 |
|||
(未显示同一用户的1个中间版本) | |||
Object.fromEntries = Object.fromEntries || function(entries) {
if (!
throw new TypeError('Object.fromEntries
}
var obj = {};
Array.from(entries).forEach(function(entry) {
obj[entry[0]] = entry[1];
});
*/
const mobileLink = function(ele) {
return $('<a>', {
href: ele.href, class: "fa fa-" + (ele.icon || 'arrow-circle-right'), html: $('<span>', {text: ele.msg ? mw.msg( ele.msg ) : ele.text})
};
mw.addMobileLinks = function(link) { return Array.isArray( link ) ? link.map( mobileLink ) : mobileLink( link ); };
|