public function delete($id); //删除单条数据public function deletes(); //删除多条数据
注意:deletes() 方法要配合查询条件
$model = Loader::model(UserDao::class); $model->delete(100); //删除多条 $model->where("id", ">", 100)->deletes();