Zanthoxyli radix is a popular tea among the elderly, and it is believed to have a positive effect on Alzheimer's disease. In this study, a highly effective three-step strategy was proposed for comprehensive analysis of the active components and biological functions of Zanthoxylum nitidum (ZN), including high-resolution LC-Q-TOF mass spectrometry (HRMS), multivariate statistical analysis for heterogeneity (MSAH), and experimental and virtual screening for bioactivity analysis (EVBA). A total of 117 compounds were identified from the root, stem, and leaf of ZN through HRMS. Bioactivity assays showed that the order of acetylcholinesterase (AChE) inhibitory activity from strong to weak was root > stem > leaf. Nitidine, chelerythrine, and sanguinarine were found to be the main differential components of root, stem, and leaf by OPLS-DA. The IC 50 values of the three compounds are 0.81 ± 0.02, 0.14 ± 0.01, and 0.48 ± 0.01 μM respectively, indicating that they are potent and high-quality AChE inhibitors. Molecular docking showed that pi-pi T-shaped interactions and pi-lone pairs played important roles in AChE inhibition. This study not only explains the biological function of Zanthoxyli radix in alleviating Alzheimer's disease to some extent, but also lays the foundation for the development of stem and leaf of ZN.