public function del() { $category = new CategoryModel(); $res = $category->del(); if ($res !== false){ echo "<script>alert('删除成功'); location='/admin/category/showList'</script>"; return; } else { echo "<script>alert('删除失败'); location='/admin/category/showList'</script>"; return; } }
- 3 回答
- 0 关注
- 1981 浏览
添加回答
举报
0/150
提交
取消