明明页面上面有
Uncaught DOMException: Failed to execute 'querySelectorAll' on 'Document': 'ul.la-list li:last' is not a valid selector.
css3没有last选择器,是last-child
document.querySelectorAll('ul.la-list li:last-child')
:last 是jquery独有的选择器,原生的应该是:last-child
元素获取不对,检车选择器的代码
好好检查一下选择器,还有字符也看看是不是哪里出错
document.querySelectorAll('ul.la-list li:last-child')