📜  jquery deparam - Javascript 代码示例

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

代码示例2
(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);