The results indicated that the methylation levels of the JAK2 gene exhibited a significant association with IL-4; STAT5A was significantly associated with IL-4 and Il-17; and the methylation level of the CD4 gene was highly significantly associated with SCC, SCS, mastitis status, and IFN-γ (p < 0.01). The gene discussed is IL4; the disease is mastitis.