首页 > 代码库 > 微信端修改title

微信端修改title

function setTitle(t) {
document.title = t;
var i = document.createElement(‘iframe‘);
i.src = "http://www.mamicode.com/img/icon_success.png";
i.style.display = ‘none‘;
i.onload = function() {
setTimeout(function(){
i.remove();
}, 9)
}
document.body.appendChild(i);
}

微信端修改title