?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 關(guān)注
- 2060 瀏覽
添加回答
舉報
0/150
提交
取消