1
兩個域名加入到一個網站。與網站C.內容限制 - 取決於域名
在contact.php頁, 當域A, 用戶視圖我想隱藏在contact.html一些內容 例如,域A和B的鏈接。 例如,圖像,文字等...
但是在域B中,他可以看到所有的contact.php頁面。
兩個域名加入到一個網站。與網站C.內容限制 - 取決於域名
在contact.php頁, 當域A, 用戶視圖我想隱藏在contact.html一些內容 例如,域A和B的鏈接。 例如,圖像,文字等...
但是在域B中,他可以看到所有的contact.php頁面。
該演示將在控制檯登錄網站當前域名
var current_domain = document.location.hostname;
console.log(current_domain);
if (current_domain == "example.com") {
//code for hiding stuff goes here
} else if (current_domain == "example21.com") {
//code for that page here
}