The radiofrequency quadrupole (RFQ) cooler and buncher has been developed in many laboratories to improve the secondary radioactive ion beam quality. In this paper, the principles of the RFQ constraint, buffer gas cooling, axial electric field and Paul trap are discussed in detail. The studies around the world and our work are also briefly introduced.