跳转到内容

User:Short Final/vector.js

维基百科,自由的百科全书

这是本页的一个历史版本,由Short Final留言 | 贡献2014年7月10日 (四) 15:19 建立内容为“function movelilink(tabs, theobj, newtabs, id, nextobj){ if (!(tabs && theobj && newtabs)) return; var y = theobj; if (y.children) y = y...”的新页面)编辑。这可能和当前版本存在着巨大的差异。

(差异) ←上一修订 | 最后版本 (差异) | 下一修订→ (差异)
注意:保存之后,你必须清除浏览器缓存才能看到做出的更改。Google ChromeFirefoxMicrosoft EdgeSafari:按住⇧ Shift键并单击工具栏的“刷新”按钮。参阅Help:绕过浏览器缓存以获取更多帮助。
function movelilink(tabs, theobj, newtabs, id, nextobj){
    if (!(tabs && theobj && newtabs)) return;
    var y = theobj;
    if (y.children) y = y.children[0];
    else y = y.childNodes[0];
    var xname = y.text;
    y = y.href;
    dellilink(tabs, theobj);
    if (!nextobj) y = addlilink(newtabs, y, xname, id);
    else y = insertlilink(newtabs, y, xname, id, nextobj);
    return y;
}