<script language="javascript">
//獲取域名
host = window.location.host;
host2=document.domain;
//獲取頁面完整地址
url = window.location.href;
document.write("<br>host="+host)
document.write("<br>host2="+host2)
document.write("<br>url="+url)
</script>
javascript 獲取域名
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章
Element-ui
狂风
2020-07-08 11:49:25
動態添加tab選項卡及tab頁面內容(ajax請求json數據)
作者:mandy 1.實現效果 2.html部分: <div id="ifrContentId"></div> 3.js部分 $(document).ready(function () {
Insightzen_xian
2020-07-07 22:21:01
element-ui組件擴展--自定義分頁組件
Insightzen_xian
2020-07-07 22:21:01
15個jQuery代碼片段
风继续吹DV
2020-07-07 21:19:19
前端技術(素材)
繁华落幕@Dummer
2020-07-07 14:51:56
VUE問題:You are using the runtime-only build of Vue where the template compiler is not available.
待鸣
2020-07-07 03:58:56
html 導出 word 調整頁邊距
待鸣
2020-07-07 03:58:44
[功能實現思路]html 郵件報 在 outlook 中錨點失效
待鸣
2020-07-07 03:58:44
如何使用uni-app快速成型一個微信小程序(一)
待鸣
2020-07-07 03:58:44
如何使用uni-app快速成型一個微信小程序(二)
待鸣
2020-07-07 03:58:44
升級npm和node
Wayss_S
2020-07-06 14:38:27
jquery中class選擇器的用法
2020037303
2020-07-06 06:44:22