The invention relates to a method for rapidly detecting the salt content in Fuling pickled mustard by using near-infrared spectroscopy. The detection steps of the method of the invention include sample collection, standard determination of the salt content of each sample, collection of each sample spectrum establishment, inspection model, product detection and classification, and the like. The method of the present invention has the characteristics of no need for pretreatment, no pollution, on-line detection, and simultaneous determination of multiple components, and is more environmentally friendly, fast, simple and quick, and can use chemometrics to establish a qualitative and quantitative method for determining the salt content in pickled vegetables such as Fuling mustard. quantitative model. The innovation of the present invention is that the near-infrared spectrum cannot reflect the characteristic absorption peak of inorganic table salt, but different Na+ and Cl- ions are released due to the different content of table salt in the sample, which affects the absorption peak of water, so the content of table salt can be quickly determined by modeling , and at the same time perform clustering according to the salt content into low-salt, medium-salt and high-salt beneficial effects.