处理bug
This commit is contained in:
parent
c68f833994
commit
b2200e5ccb
@ -168,10 +168,9 @@ layui.define(function(exports) {
|
|||||||
var kvs = item.split('=');
|
var kvs = item.split('=');
|
||||||
if (kvs.length == 1) {
|
if (kvs.length == 1) {
|
||||||
paramsObj[kvs[0]] = null;
|
paramsObj[kvs[0]] = null;
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
if (kvs.length == 2) {
|
paramsObj[kvs[0]] = decodeURI(item.replace(kvs[0] +'=', ''));
|
||||||
paramsObj[kvs[0]] = decodeURI(kvs[1]);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return paramsObj;
|
return paramsObj;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user