📅  最后修改于: 2022-03-11 15:01:31.892000             🧑  作者: Mango
//Well, class names cannot contain spaces, because the space separates multiple class names from each other. For example, if your HTML contains
class="zocial button"
//it means that this element has two classes, "zocial" and "button".
//If you want to add both of these classes, you have to pass each one as argument to the method:
buttonz[i].classList.add('zocial', 'button');