The present invention relates to flavonoid glycosides isolated from dandelion and capable of preventing and treating Staphylococcus aureus and beta-hemolytic streptococcus infection diseases and their pharmaceutically acceptable salts, their anti-infective medicinal uses, and pharmaceutical compositions containing these compounds. The two novel flavonoid glycoside compounds of the present invention have obvious effects of inhibiting the growth of Staphylococcus aureus and beta-hemolytic streptococcus, and can be expected to be used for the prevention and treatment of boils, pustules and toxic epidermal decomposition caused by the infection of these two. , pneumonia, osteomyelitis, acute myocarditis, endocarditis, meningitis, mastitis, cystitis, pelvic inflammatory disease, urinary tract inflammation, prostatitis, bacteremia, toxic shock syndrome, lymphadenitis, arthritis, pharyngitis , cervicitis, and muscle, skin, urogenital tract, central nervous system abscesses.