Explorar o código

改进fast.js查询Url参数

PPPSCN %!s(int64=6) %!d(string=hai) anos
pai
achega
0f1ce99a25
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      public/assets/js/fast.js

+ 1 - 1
public/assets/js/fast.js

@@ -104,7 +104,7 @@ define(['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, undefine
                     url = window.location.href;
                 }
                 name = name.replace(/[\[\]]/g, "\\$&");
-                var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
+                var regex = new RegExp("[?&/]" + name + "([=/]([^&#/?]*)|&|#|$)"),
                     results = regex.exec(url);
                 if (!results)
                     return null;