'Uncaught DOMException: Document.querySelector: 'h1#2' is not a valid selector' what to do?

前端 未结 0 1860
独厮守ぢ
独厮守ぢ 2021-01-28 00:58

num.setAttribute("id", a); a += 1

document.querySelector(`h1#${a-1}`).innerHTML = "vgfhdbjskml"

this is a piece

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