Commit 16dee247 authored by Xuguangxing's avatar Xuguangxing

feat: 优化js eval方法

parent a30c6c6f
...@@ -10,7 +10,7 @@ function addOrEditUrlParams (url, paramName, replaceWith) { ...@@ -10,7 +10,7 @@ function addOrEditUrlParams (url, paramName, replaceWith) {
let idx = url.indexOf('?'); let idx = url.indexOf('?');
if (idx < 0) { if (idx < 0) {
url += '?'; url += '?';
} else if (idx >= 0 && idx != url.length - 1) { } else if (idx >= 0 && idx !== url.length - 1) {
url += '&'; url += '&';
} }
url = url + paraStr; url = url + paraStr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment