text: 
  export default function compareVersion (oldVersion, newVersion, containEqual){
    if (typeof oldVersion !== 'string' || typeof newVersion !== 'string') {
      return false;
    }
    //分割字符串为['1', '0', '1']格式
    let oldArray = oldVersion.split('.');
    let newArray = newVersion.split('.');
    let o;
    let n;
    do {
      o = oldArray.shift();
      n = newArray.shift();
    } while (o === n && newArray.length > 0);
    if (containEqual) {
      return (n | 0) >= (o | 0);
    } else {
      return (n | 0) > (o | 0);
    }
  }
  