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.
如何防止 jquery-mmenu 在单击菜单元素时自行关闭?我尝试拦截“关闭”事件,但如果我在处理程序中放置断点,菜单已经关闭......(即使如此,“preventDefault()”似乎也没有做任何事情)。
谢谢!
将“onClick.close”选项设置为“false”应该可以解决问题:
$("#menu").mmenu({ onClick: { close: false } });