The invention discloses a composition for constituting the in-situ gel spray for huperzine turbinitis, as well as its preparation method and application. The preparation is a nasal preparation which is in a liquid state in vitro and becomes a gel state when sprayed into a nasal cavity. It uses huperzine A as the active ingredient, supplemented with in-situ gel forming agent, isotonic regulator, pH regulator, preservative, water, etc. It is a nasal in-situ gel spray, which is suitable for the prevention and treatment of elderly people Dementia and middle-aged and elderly memory impairment or improve the memory and learning ability of adolescents. The nasal preparation is in a liquid state in vitro, the dosage is easy to accurately control, and it is convenient to use. When sprayed into the nasal cavity, it can be evenly dispersed on the surface of the nasal mucosa, and diffuses with the nasal mucus to form a gel, which stays in the nasal cavity for a long time and is not easy to be lost. The bioavailability of cerebrospinal fluid, brain, and hippocampus is 2.2 to 2.7 times that of oral administration, and the drug effect is 2 to 4 times that of oral administration. It has small local irritation, low toxicity, and good biocompatibility.