Generally speaking, muscle spasms can be cured by self-regulation, such as promoting local blood circulation, massage, paying attention to diet and so on. 1. Promote local blood circulation: muscle spasms are mostly due to poor local blood circulation, and physical stimulation of the legs can be actively used. You can soak your feet properly before going to bed to promote local blood circulation. 2. Massage: Pressing, kneading and pinching with both hands alternately along the muscles will help to relieve the spasm symptoms quickly. 3. Pay attention to diet: Supplement calcium, potassium, sodium and other elements, such as eating seaweed, tofu, eggs, fish and so on. It is recommended to avoid keeping the same posture for a long time to reduce the probability of muscle spasm onset. If the symptoms of muscle spasms do not improve after self-regulation, you should go to the hospital in time for a targeted examination to find out whether it is caused by the disease.