JavaScript 获取完整当前域名
<script> var dq_url = window.location.protocol+"//"+window.location.host;/*获取当前域名*/ console.log(dq_url); </script>
<script> var dq_url = window.location.protocol+"//"+window.location.host;/*获取当前域名*/ console.log(dq_url); </script>