我看好多人都是使用split或者join,我想的挺简单,就是字符串去比较大小,直接判断就可以 if(oldVersion < newVersion){ return true; }else{ return false; }