PHP【路由问题】
小可耐
小可耐 2020-02-12 12:15:15
0
2
1007

tp和laravel的路由

域名/目录/参数/参数/参数

而且只能是/

怎么像普通传参那样

域名/目录?id=1&name=lisa

这种接口咋写的

http://localhost/目录?s=参数

就是省略文件名直接用目录带参数访问(此处说明不是index.php,这个可以省略我知道)

小可耐
小可耐

Antworte allen(2)
小可耐

https://baike.baidu***/item/QQ/111306?ivk_sa=1022817p 然后你加个/index.php https://baike.baidu***/item/QQ/111306/index.php?ivk_sa=1022817p 很明显,打不开了,证明不是index它隐藏了

小可耐

怎么写啊,求助... 就比如百度的 https://baike.baidu***/item/QQ/111306?ivk_sa=1022817p 可以看到这个111306是目录,真实文件省略了

Beliebte Tutorials
Mehr>
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage
Über uns Haftungsausschluss Sitemap
Chinesische PHP-Website:Online-PHP-Schulung für das Gemeinwohl,Helfen Sie PHP-Lernenden, sich schnell weiterzuentwickeln!