分割成数组,在利用es6的扩展来比较 [1,2,3]>[1,2,2] // true

const _shouldUpdate = (oldVersion, newVersion) => {
  // 补全代码
  oldVersion = oldVersion.split('.')
  newVersion = newVersion.split('.')
  return newVersion > oldVersion
}