时间:2020-02-20加入收藏
如果多给域名后面直接追加 else if 即可。<p>©2018 All rights reserved <a href="http://www.beian.miit.gov.cn/" id="beian">备1803号-1</a></p
<script>
var domain = window.location.host;
if (domain == "www.123.com" || domain == "123.com") {
document.getElementById("beian").innerHTML = "18050号-1";
}
else if (domain == "www.456.com" || domain == "456.com") {
document.getElementById("beian").innerHTML = "190362号";
}
</script>
TGA: 技巧