const _shouldUpdate = (oldVersion, newVersion) => { // 补全代码 let oldV = oldVersion.toString().split('.'); let newV = newVersion.toString().split('.'); for (let i = 0; i < 3; i++) { if (newV[i] > oldV[i]) { return true } } return false; }