index.html
网页导航栏添加logo及标题
var scene = window.location.host
if (scene === ‘‘) {
document.querySelector(‘link[rel="icon"]‘).href = "/static/anfang_favicon.ico"
document.getElementsByTagName("title")[0].innerText = ‘安防‘;
} else if (scene === ‘‘) {
document.querySelector(‘link[rel="icon"]‘).href = "/static/school_facicon.ico"
document.getElementsByTagName("title")[0].innerText = ‘校园云‘;
}
原文:/luckyShuang/p/13295007.html