Treatment for hairballs in cats:
1. Give your cat hairball remedy, which contains cat grass and various plant extracts, to effectively help your cat break down hairballs in its intestines and stomach, allowing it to pass through the body smoothly and healthily.
2. Feed your cat some probiotics to help regulate its digestive system, improve its gut environment, and relieve symptoms such as vomiting, diarrhea, and loss of appetite caused by hairballs.
3. In cases of severe hairballs, you can use glycerin suppositories for your cat, but do not use them long-term. This can lead to dependence and harm your cat's health. 
Methods to prevent hairballs in cats:
1. Owners need to regularly help their cats brush off the hair that is shed due to normal metabolism. When the cat's body is relatively clean, it will not inhale too much hair.
2. Regularly feed your cat hairball paste to help clear hair from its gastrointestinal tract.
3. If conditions permit, feeding your cat special cat food can also help it expel hairballs from its gastrointestinal tract in a timely manner.