The invention provides a method for obtaining a high-resolution two-dimensional J decomposition spectrum, and relates to a nuclear magnetic resonance spectroscopy detection method. The method comprises: loading a sample to be detected into a standard nuclear magnetic test tube, and conveying into the detection chamber of a nuclear magnetic resonance spectrometer; sampling the one-dimensional hydrogen spectrum of the sample to be detected, and obtaining the signal peak distribution area and the spectral line width so as to provide the reference for the spectral width parameter setting, wherein the line width value reflects the magnetic field uniformity condition; measuring the pulse width of a radio frequency pulse required by excitation of the sample to be detected; introducing a compiled pulse sequence on the nuclear magnetic resonance spectrometer, opening the heteronuclear intermolecule multiple quantum coherent signal excitation module, the indirect dimensional evolving module, the spin echo fixed delay module and the J modulating fast sampling module of the pulse sequence, and setting the experiment parameters of various modules; skipping the artificial shimming operation process, and directly executing data sampling; and after completing the data sampling, calling data post-processing codes to carry out related data post-processing so as to obtain the high-resolution two-dimensional J decomposition spectrum being not affected by the inhomogeneous magnetic field.