1. 首页 > 网络技术

隐藏网页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标题', '');

 

本文由林心小筑发布,不代表林心小筑立场,转载联系作者并注明出处:https://www.linfly.net/wangluojishu/646.html

留言与评论(共有 0 条评论)
   
验证码:

联系我们

在线咨询:点击这里给我发消息

微信号:

工作日:9:30-18:30,节假日休息