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.
我正在尝试从 JSTREE 收集每个节点 ID,以便我可以获得 MAX ID。
我认为这是直截了当的......感谢任何回复谢谢!
var ids = []; $('.jstree-leaf').each(function(){ ids.push($(this).attr('id')); });