时间:2021-07-01 10:21:17 帮助过:2人阅读
toString: function() {
var i = 0, queryString = [], chunks = [], self = this;
var encode = function(str) {
str = str + "";
//if ($spaces) str = str.replace(/ /g, "+");
return encodeURIComponent(str);
};
注释掉 if ($spaces) str = str.replace(/ /g, "+"); 那一行即可
2. value为空的情况
代码如下:
get: function (key)
{
var target = this.GET(key);
if (typeof (target) == 'boolean')
return '';
if (is(target, Object))
return jQuery.extend(true, {}, target);
else if (is(target, Array))
return target.slice(0);
return target;
},
加入if (typeof (target) == 'boolean')return '';