<!DOCTYPE html> <html> <head> <meta charset=utf-8> </head> <body> <script type="text/javascript"> const _shouldUpdate = (oldVersion, newVersion) => { // 补全代码 let oldV = parseInt(oldVersion.split('.').join("")) let newV = parseInt(newVersion.split('.').join("")) if (newV > oldV) { return true; } else { return false; } } </script> </body> </html>