【一句话博客】SyntaxError: Failed to execute ‘querySelector’ on ‘Document’: “xxx” is not a valid selector."
出现了报错SyntaxError: Failed to execute ‘querySelector’ on ‘Document’: “xxx” is not a valid selector."原因我使用了guid做div的id,出现了数字为首的id形式,而querySelector不识别数字开头的命名,所以报错。解决办法改用getElementById()即可...
复制链接