最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
ios设备中angularjs无法改变页面title的解决方法
时间:2022-06-25 15:39:25 编辑:袖梨 来源:一聚教程网
如下所示:
$rootScope.$watch('title',function(title){ var body = document.getElementsByTagName('body')[0]; document.title = title; var iframe = document.createElement("iframe"); iframe.title = ''; iframe.; iframe.; iframe.setAttribute("src", "/empty.png"); iframe.addEventListener('load', function() { setTimeout(function() { iframe.removeEventListener('load'); document.body.removeChild(iframe); }, 0); }); document.body.appendChild(iframe); });
// 代码放在app.js中,代码备份下,预防下次遇到同样的问题。
相关文章
- 风暴奇侠矿物探测仪怎么用-详细用法介绍 05-15
- Trezor钱包app下载软件 05-15
- 小狐狸电子钱包手机下载 05-15
- 小狐狸钱包网址手机版下载 05-15
- 小狐狸钱包下载app安卓版 05-15
- Dogecoin钱包官方版 05-15