vue 切换网页导航栏添加logo及标题

index.html

    <title> 网页导航栏添加logo及标题</title>
<link rel="icon" type="image/x-icon" href="/static/anfang_favicon.ico"/>
<script type="text/javascript">
var scene = window.location.host
if (scene === ‘anfang.cn‘) {
document.querySelector(‘link[rel="icon"]‘).href = "/static/anfang_favicon.ico"
document.getElementsByTagName("title")[0].innerText = ‘安防‘;
} else if (scene === ‘xuexiao.cn‘) {
document.querySelector(‘link[rel="icon"]‘).href = "/static/school_facicon.ico"
document.getElementsByTagName("title")[0].innerText = ‘校园云‘;
}
</script>

vue 切换网页导航栏添加logo及标题

上一篇:RMAN备份backup database current controlfile plus archivelog format '/opt/oracle/admin/data_arch%U.bak' delete input


下一篇:数据库事务之不可重复读