林心小筑

隐藏网页title个别去不掉的标题方法

function title_powered(str2) {
        var str1 = document.title;
        var str2 = str1.indexOf(" - 你不想看到的TITLE标题");

        if (str2 != -1) {
                document.title=document.title.substring(0,str2);
        }

}
title_powered();


方法二:

document.title = document.title.replace(' - 你不想看到的TITLE标题', '');

 

此文由 林心小筑 编辑,未经允许不得转载!:首页 > 潮·科技 » 隐藏网页title个别去不掉的标题方法

(40)
分享到:

相关推荐

评论(12人参与,0条评论)
  • 请先说点什么
    热门评论
    最新评论

    暂无评论