In this paper we prove a central limit theorem and a moderate deviation principle for a class of semilinear stochastic partial differential equations,which contain the stochastic Burgers' equation and the stochastic reaction-diffusion equation.The weak convergence method plays an important role.