摘要: const url = new URL('http://username:password@hostname:9090/path?arg=value#anchor'); console.log(url.protocol); // "http:" console.log(url.hostname); 阅读全文
posted @ 2025-01-21 16:16 充实地生活着 阅读(14) 评论(0) 推荐(0)
摘要: <?php class Router { protected $routes = array(); protected $basePath; public function __construct($basePath = null) { if ($basePath) { $this->basePat 阅读全文
posted @ 2025-01-21 13:09 充实地生活着 阅读(23) 评论(0) 推荐(0)