code:
document.querySelector("#02b51fd4-c350-65d3-c59a-cfdc5a538066")
err:
Uncaught DOMException: Document.querySelector: '#02b51fd4-c350-65d3-c59a-cfdc5a538066' is not a valid selector
but:
document.getElementById("02b51fd4-c350-65d3-c59a-cfdc5a538066") -> have no error
标签:c59a,c350,02b51fd4,报错,querySelector,ID,cfdc5a538066 From: https://www.cnblogs.com/sqmw/p/16792619.html总结:id不能是数字开头,不然使用选择器querySelector就会报错