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.
我正在使用 treetable 插件,我想在表的根目录上添加一个新行,我使用loadBranch它可以很好地在树内添加行,但找不到在根目录上添加的方法。
loadBranch
您可以通过将 null 作为第一个参数发送到 loadBranch 来将行添加到根:
$("#tree").treetable("loadBranch", null, rows)