A computer aided simulation model of grating diffration is reported,whereby various phenomena of interference and diffraction can be displayed,including the double-slits and n -slits diffraction,dispersion and the diffraction of the light,and the probability nature of the microscopic particles.