找到 8 篇与 url 相关的结果

Typecho获取当前页面网址链接

在源码var/Typecho/Request.php有个getRequestUrl函数可以获取当前网址链接,使用方法如下:<?php echo $this->request->getRequestUrl(); ?>当然使用如下使用原生php语法写也是可以的function thisPageUrl() { return (isset($_SERVER['...