Why won't my select appear with an option when created with JS?

前端 未结 0 835
北海茫月
北海茫月 2021-01-04 10:49
function showProperties() {
  const forButton = document.createElement(\'select\');
  forButton.setAttribute(\'type\', \'text\')
  toolresult.appendChild(forButton)
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题