<!DOCTYPE html>
<html>
    <head>
        <meta charset=utf-8>
    </head>
    <body>
    	
        <script type="text/javascript">
            const _shouldUpdate = (oldVersion, newVersion) => {
                // 刀根火种
               let a =  oldVersion.split('.')
			   let b =  newVersion.split('.')
			  
			   let num1 ="";let num2 ="";let stsus=false;
			   for(var i=0;i<a.length;i++){
					 num1+=  a[i]
			   }
			   
			   for(var j=0;j<b.length;j++){
			   		 num2+=  b[j]
			   }
			   
			   if (num1==num2) {
			   	    alert('不足要跟新')
			   } else if(num1 > num2){
			   		stsus = false
			   }  if(num1 < num2){
			   	     stsus= true
			   } 
			
			  return stsus;
			 
            }
			
		console.log(  _shouldUpdate("1.3.2","0.3.3"))
        </script>
    </body>
</html>