The alignment of molecules in the femtosecond laser field induces the refractive index change of the propagation medium, resulting in the spectral modulation effect. In this paper, the time evolution of the wavelength offset of a probe laser pulse under the influence of the non-adiabatic molecular alignment and Kerr effect are measured experimentally by the pump-probe method in nitrogen medium, and the alignment degree of N<sub>2</sub> molecules is obtained. By solving the time-dependent Schrödinger equation theoretically, the expression of the degree of molecular non-adiabatic alignment was obtained, and the time evolution of non-adiabatic alignment of N<sub>2</sub> molecules was calculated. Taking into account of the combined influence of the non-adiabatic molecular alignment and Kerr effect on the change of refractive index of the propagation medium, the modulation effect of birefringence on the spectrum of the probe pulse was achieved. The experimental result agrees well with the theoretical calculation, demonstrating that the spectral modulation results obtained by experimental measurement can be used to characterize the alignment degree. Further, the double pulse pump method was applied to control the degree of molecular alignment. It was found that the degree of molecular alignment can be enhanced by the double pulse pump method. Moreover, by adjusting the delay time of the two pump laser pulses, that is, adding the second pump laser pulse at one rotational period and half rotational period, respectively, the enhancement and loss of the alignment of N<sub>2</sub> molecules can be achieved, which is named as the " alignment switch" effect. The molecular alignment control induced by the double pulse pump method can also be used to the other molecular systems with different alignment and anti- alignment time, such as CO<sub>2</sub> molecules, O<sub>2</sub> molecules, indicating that the double pulse pump method can be applied universally.