【JavaScript Tips】Simply set multiple attributes to the created element
【JavaScript Tips】Simply set multiple attributes to the created element from const input = document.createElement('input'); input.setAttribute("id", "1"); input.setAttribute("type", "button&q...