明明页面上面有
- 为什么不行呢
Uncaught DOMException: Failed to execute 'querySelectorAll' on 'Document': 'ul.la-list li:last' is not a valid selector.
明明页面上面有
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')