There is no quick treatment for leg cramps. The main causes of leg cramps include hypocalcemia, craniocerebral diseases, and influence of external environmental factors, etc. They can be treated by taking oral calcium supplements, treating the original disease, and resting symptomatically. 1. Hypocalcemia: It is due to the decrease of blood free calcium concentration in the body, which leads to the increase of excitability of leg muscle cells, and then the phenomenon of leg twitching occurs, which can be treated by taking oral calcium such as calcium lactate, calcium gluconate and other drugs. 2. Cranio-cerebral diseases: some cranio-cerebral diseases such as epilepsy, traumatic brain injury, brain tumors and other diseases can also lead to leg cramps, this kind of disease should be actively treating the primary disease, the symptoms of leg cramps can be relieved. 3. External environment: external environmental factors such as excessive exercise, cold water stimulation, etc., these causes of leg cramps do not require special treatment, away from the environmental factors can be relieved after rest. Leg cramps may have other causes, it is recommended to go to the hospital by the doctor to clarify the cause of the disease, under the guidance of the doctor standardized treatment.