如何通过 js 修改微信浏览器的title?

document.setTitle = function(t) {
  document.title = t;
  var i = document.createElement('iframe');
  i.src = '/favicon.ico';
  i.style.display = 'none';
  i.onload = function() {
    setTimeout(function(){
      i.remove();
    }, 9)
  }
  document.body.appendChild(i);
}

 

 

posted on 2016-11-03 14:08  KenshinYang  阅读(912)  评论(0)    收藏  举报

导航