var but=document.createElement('button') but.className='Select-option' but.id='show-image-only' but.innerText='ABC' but.tabindex='-1' but.setAttribute('role','option') this.append(but)
但是最后 button 元素却没有 role 这个属性,可能是因为他这个时候还没有父母
var but=document.createElement('button') but.className='Select-option' but.id='show-image-only' but.innerText='ABC' but.tabindex='-1' but.setAttribute('role','option') this.append(but)
但是最后 button 元素却没有 role 这个属性,可能是因为他这个时候还没有父母