📌  相关文章
📜  检查 url 是否有斜杠 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:45.433000             🧑  作者: Mango

代码示例1
$getWholeUrl = "http://".$_SERVER['HTTP_HOST']."".$_SERVER['REQUEST_URI']."";

//The output would be 
/*
  http://localhost/tabulation/event/event_name/
*/

if(substr($getWholeUrl , -1)=='/'){
    //Add your condition here

}