20,359
社区成员
发帖
与我相关
我的任务
分享
print_r($_SERVER);
$_SERVER['REQUEST_URI']
$current_url = "http://".$_SERVER ['HTTP_HOST'].$_SERVER['PHP_SELF'];
print_r($_SERVER);
//自己看看就明白了
echo $url_this = "http://".$_SERVER ['HTTP_HOST'].$_SERVER['PHP_SELF'];
<script>
var thisurl = window.location;
document.write(thisurl);
</script>