jquery获取元素

   let $lis = $('#sidebar-menu li[to]')//获取sidebar-menu下包含to属性的li
原文地址:https://www.cnblogs.com/kaiqinzhang/p/10800146.html