code: function (version1, version2) {
      try {
        if (lodash.isNumber(version1) && lodash.isNumber(version2)) {
          if (version1 > version2) { return 1 }
          if (version1 === version2) { return 0 }
          if (version1 < version2) { return -1 }
        } else if (lodash.isNumber(version1) || lodash.isNumber(version2)) {
          version1 += '';
          version2 += '';
        }
  
        var version1Array = version1.split('.');
        var version2Array = version2.split('.');
  
        var ver1IntList = [];
        var ver2IntList = [];
  
        version1Array.forEach(function (value, index, array) {
          ver1IntList.push(parseInt(value));
        });
  
        version2Array.forEach(function (value, index, array) {
          ver2IntList.push(parseInt(value));
        });
  
        // format
        if (ver1IntList.length < ver2IntList.length) {
          var i = 0;
          for (; i < (ver2IntList.length - ver1IntList.length); ++i) {
            ver1IntList.push(0);
          }
        }
  
        if (ver1IntList.length > ver2IntList.length) {
          var i$1 = 0;
          for (; i$1 < (ver1IntList.length - ver2IntList.length); ++i$1) {
            ver2IntList.push(0);
          }
        }
  
        var i$2 = 0;
        for (; i$2 < ver1IntList.length; ++i$2) {
          var cVer1 = ver1IntList[i$2];
          var cVer2 = ver2IntList[i$2];
  
          if (cVer1 > cVer2) { return 1 }
          if (cVer1 < cVer2) { return -1 }
        }
  
        return 0
      } catch (e) {
        return -1
      }
    }
docs: 比较两个版本号
  @param version1 {String} || {Number} 版本号1
  @param version2 {String} || {Number} 版本号2
  @return {Number} 1, 大于；0 等于；-1 小于