Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery deparam

(function ($) {
  $.deparam =
    $.deparam ||
    function (uri) {
      if (uri === undefined) {
        uri = window.location.pathname;
      }
      const url = window.location.pathname;
      const results = url.split("/");
      const result = results.pop();
      return result;
    };
})(Jquery);
 
PREVIOUS NEXT
Tagged: #jquery #deparam
ADD COMMENT
Topic
Name
1+6 =