Get the parameters and verify if there is

-1

Well I want to know how I can get the parameters to be done with node.js but not with html or javascript .

  
  • localhost / match / 51252134213

  •   
  • localhost / match / PARAMETER

  •   
    
asked by Gaston Gonzalez 15.12.2017 в 23:38
source

1 answer

-1

If you want to read the last parameter after the "/" you could use this javascript code, tell me if that's what you need.

<script type="text/javascript">
    function getparameters01(){
        var strURL = window.location.href ;
        alert(strURL);
        var vParametros = strURL.split('/');
            alert(vParametros[vParametros.length-1]);
    }
    getparameters01();
</script>
    
answered by 16.12.2017 в 00:26