js修改页面的title如下:
var title='我是title';
setTimeout(function(){
//利用iframe的onload事件刷新页面
document.title = '我是title';
var iframe = document.createElement('iframe');
iframe.style.visibility = 'hidden';
iframe.style.width = '1px';
iframe.style.height = '1px';
iframe.onload = function () {
setTimeout(function () {
document.body.removeChild(iframe);
}, 0);
};
document.body.appendChild(iframe);
},0);