Muscle spasms are a type of muscle cramp caused by unconscious, compulsive contractions of the muscles. Muscle cramps in the lower legs and toes are particularly common and, when they do occur, are unusually painful and usually last between a few seconds and a few tens of seconds. The cramps can even wake a person up in pain in the middle of the night. If muscle spasms occur, the following points can be referred to for treatment. 1, when cramps occur, you should remain calm, do not panic, first you should determine where the muscle produces cramps, and then specialize in the treatment of cramps here. 2, the occurrence of muscle spasm, the usual practice can be to stretch the muscle in the opposite direction of the occurrence of spasm, the general pain can be instantly alleviated. When dealing with violent pulling is strictly prohibited, traction force should be uniform, pay attention to warmth, so as not to cause secondary injuries. 3, when the abdominal muscle spasm occurs, you can also carry out abdominal massage and hot compresses, appropriate back stretching exercises can also relieve pain. 4, when the calf muscles cramp phenomenon, the solution is: knee joint as straight as possible, toes bent upward, feet were grabbed by both hands and pulled upward. 5, swimming muscle cramps occur when the situation is quite dangerous, but do not panic, as far as possible, let the body floating on the surface of the water, and immediately for help. If there is no one at the water’s edge, you can keep floating in the water to save yourself. The specific method is to grab the toes of the cramped side with your hands, straighten the leg of the cramped side as far forward as possible, while pressing down on the knee of the cramped side with the palm of the other hand to help keep the leg of the cramped side straight. After the cramp is slowly relieved, swim to the shore. Frequent leg cramps are mainly caused by calcium deficiency, cold exposure and local neurovascular compression. Usually, calcium absorption should be increased in moderation and more sun exposure. Avoid sleeping sitting to reduce the pressure on nerves and blood vessels caused by leg bending. Local blood circulation can also be enhanced by applying heat and massage to the local muscles. If there is no improvement, you should also go to a regular hospital to register a specialist clinic for examination.