const _shouldUpdate = (oldVersion, newVersion) => { // 补全代码 const olds = oldVersion.split('.'); const news = newVersion.split('.'); let num = 0 for (let i = 0; i < 3; i++) { if (news[i] > olds[i] && i == num) { return true; break; } else if (news[i] == olds[i] ...