edit one code issue, can not juse judge the classList"s bool value.