It's like JavaScript to split the line.



  • How do you dissolve the line? There's a line of view.

    http://localhost:8080/#subscriptions/10/valid/20
    

    Two arguments 10 and 20.

    PS : The stroke enters the browser and at the exit of the function we only get 10



  • https://gist.github.com/jlong/2428561#file-uri-js

    parser = document.createElement('a');
    parser.href = "http://localhost:8080/#subscriptions/10/valid/20";
    

    hashArgs = parser.hash.split("/");

    console.log(hashArgs[1], hashArgs[3]);


Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2