题解 | #判断版本#
判断版本
https://www.nowcoder.com/practice/dcc4b011c86c454aa58cb1790a8cb760
replaceAll不行 我猜测是js的版本问题?
let o=parseInt(oldVersion.replace(/\./g,""))
let n=parseInt(newVersion.replace(/\./g,""))
console.log("0",o)
console.log("n",n)
return n>o?true:false;