Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以排除某些子元素被选中?现在,当我将某些内容标记为可选时,它会使所有内容都嵌套在 a 之下,selectee这有点烦人。我当然可以看到解决方法,但这是相当多的工作,如果可能的话,我会尽量避免它。
selectee
初始化时需要使用过滤器选项。例如,如果选择对象是 li 元素,则使用以下内容:
$( ".selector" ).selectable({ filter: "li" });