原文:php獲取當前域名

當前url:http: api.gigacre.xyz: home info focus area.php ...

2018-06-25 14:15 0 10321 推薦指數:

查看詳情

php獲取當前域名

當前url:http://localhost:805/test/helloworld.php echo 'SERVER_NAME:'.$_SERVER['SERVER_NAME']; //獲取當前域名(不含端口號) echo '<p>'; echo 'HTTP_HOST ...

Sat Oct 22 00:00:00 CST 2016 0 71543
js獲取當前域名

<script language="javascript"> //獲取域名 host = window.location.host; host2=document.domain; //獲取頁面完整地址 url = window.location.href ...

Sat Apr 08 00:05:00 CST 2017 0 4381
javascript獲取當前域名

<script language="javascript">//獲取域名host = window.location.host;host2=document.domain; //獲取頁面完整地址url = window.location.href;document.write("< ...

Mon Jan 15 22:39:00 CST 2018 0 1489
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM