解决H5设置title在ios中失效的问题
背景:在app中引入h5页面动态设置标题时ios无法获取title
document.setTitle=function(t){
document.title = t
var i = document.createElement('iframe')
i.onload = function(){
setTimeout(function(){
i.remove()
},10)
}
document.body.appendChild(i)
}
调用:document.setTitle('我是标题')