diff --git a/src/tools/querystring/index.js b/src/tools/querystring/index.js index e8ed0c140..c5c8ca2c2 100644 --- a/src/tools/querystring/index.js +++ b/src/tools/querystring/index.js @@ -39,7 +39,7 @@ export const stringify = function (obj, sep, eq, arrayKey) { var buf = [], key, val; - var escape = escape; + var escape = escape || this.escape; for (key in obj) { if (!hasOwnProperty.call(obj, key)) continue; @@ -95,7 +95,7 @@ export const parse = function (str, sep, eq) { var pairs = str.split(sep || '&'); eq = eq || '='; - var unescape = unescape; + var unescape = unescape || this.unescape; for (var i = 0; i < pairs.length; i++) {