请参考 https://docs.lvgl.io/master/overview/obj.html You can remove all the children of an object (but not the object itself) using [lv_obj_clean](https://docs.lvgl.io/master/API/core/lv_obj_tree.html#_CPPv412lv_obj_cleanP9_lv_obj_t)(obj).