Compactness Method for the Regularity of Navier-Stokes Equations