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.
我想用几个复选框渲染 dynatree 节点并选择任何一个,但是当我单击复选框时,发生单击行,如何禁用单击行并启用单击位于节点中的元素?
很简单。从服务器使用noLink: true(节点标题将是span,不是a)并且不要删除e.preventDefault,因为
noLink: true
span
a
e.preventDefault
确保点击停止,否则<a href='#'>跳转到顶部
<a href='#'>