MediaWiki:Common.js:修订间差异

Admin
Admin留言 | 贡献
Admin
Admin留言 | 贡献
第5行: 第5行:
username = document.getElementById("pt-userpage").a.innerHtml
username = document.getElementById("pt-userpage").a.innerHtml
alert(username) // test
alert(username) // test
    /**百度推送 */
    function baiduPush() {
        var bp = document.createElement('script');
        var src = window.location.protocol.indexOf('https') !== -1
            ? 'https://zz.bdstatic.com/linksubmit/push.js'
            : 'http://push.zhanzhang.baidu.com/push.js';
        bp.src = src;
        bp.setAttribute('async', ''); // 最好异步加载
        document.body.appendChild(bp);
    }