code: function parseUrl(url, params) {
    var paramsStr = '';
  
    if (typeof params === 'string') {
      paramsStr = params;
    } else if ((typeof params === 'undefined' ? 'undefined' : _typeof(params)) === 'object') {
      Object.keys(params).forEach(function (key) {
        if (url.indexOf(key + '=') < 0) {
          paramsStr += '&' + key + '=' + encodeURIComponent(params[key]);
        }
      });
    }
    // add a timestampe to remove cache
    paramsStr += '&_time=' + getNow();
  
    if (paramsStr[0] === '&') {
      paramsStr = paramsStr.substr(1);
    }
  
    return url + (url.indexOf('?') === -1 ? '?' : '&') + paramsStr;
  }
docs: parse the final url of request