From 38c1432fa0540f119253abdf5e0fb775d64e1c91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=88=E8=82=B2=E6=9E=97?= <2921544609@qq.com> Date: Thu, 5 Dec 2024 22:45:20 +0800 Subject: [PATCH] 1 --- .../20241205-\350\241\250\345\215\225.md" | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 "\346\262\210\350\202\262\346\236\227/20241205-\350\241\250\345\215\225.md" diff --git "a/\346\262\210\350\202\262\346\236\227/20241205-\350\241\250\345\215\225.md" "b/\346\262\210\350\202\262\346\236\227/20241205-\350\241\250\345\215\225.md" new file mode 100644 index 0000000..3133c3f --- /dev/null +++ "b/\346\262\210\350\202\262\346\236\227/20241205-\350\241\250\345\215\225.md" @@ -0,0 +1,44 @@ +# 表单 +基本表单结构: +``` +
+ + +``` +控制器: +在该方法名前面加 `[HttpPost]` +该方法参数为 `(类型 变量名)` + +删除写一个新的方法 +按钮`` +进行删除然后返回首页 + +练习: +![](https://gitee.com/shen-yulin20051127/imgs/raw/master/imgs/202412051.png) +![](https://gitee.com/shen-yulin20051127/imgs/raw/master/imgs/202412052.png) +![](https://gitee.com/shen-yulin20051127/imgs/raw/master/imgs/202412053.png) +![](https://gitee.com/shen-yulin20051127/imgs/raw/master/imgs/202412054.png) +![](https://gitee.com/shen-yulin20051127/imgs/raw/master/imgs/202412055.png) +![](https://gitee.com/shen-yulin20051127/imgs/raw/master/imgs/202412056.png) +![](https://gitee.com/shen-yulin20051127/imgs/raw/master/imgs/202412057.png) +![](https://gitee.com/shen-yulin20051127/imgs/raw/master/imgs/202412058.png) +![](https://gitee.com/shen-yulin20051127/imgs/raw/master/imgs/202412059.png) +![](https://gitee.com/shen-yulin20051127/imgs/raw/master/imgs/2024120510.png) +![](https://gitee.com/shen-yulin20051127/imgs/raw/master/imgs/2024120511.png) +![](https://gitee.com/shen-yulin20051127/imgs/raw/master/imgs/2024120512.png) +![](https://gitee.com/shen-yulin20051127/imgs/raw/master/imgs/2024120513.png) +![](https://gitee.com/shen-yulin20051127/imgs/raw/master/imgs/2024120514.png) +![](https://gitee.com/shen-yulin20051127/imgs/raw/master/imgs/2024120515.png) +![](https://gitee.com/shen-yulin20051127/imgs/raw/master/imgs/2024120516.png) +![](https://gitee.com/shen-yulin20051127/imgs/raw/master/imgs/2024120517.png) +![](https://gitee.com/shen-yulin20051127/imgs/raw/master/imgs/2024120518.png) +![](https://gitee.com/shen-yulin20051127/imgs/raw/master/imgs/20241205194707.png) +![](https://gitee.com/shen-yulin20051127/imgs/raw/master/imgs/20241205195443.png) +![](https://gitee.com/shen-yulin20051127/imgs/raw/master/imgs/20241205195642.png) +![](https://gitee.com/shen-yulin20051127/imgs/raw/master/imgs/20241205200029.png) +![](https://gitee.com/shen-yulin20051127/imgs/raw/master/imgs/20241205200323.png) +![](https://gitee.com/shen-yulin20051127/imgs/raw/master/imgs/20241205200523.png) +![](https://gitee.com/shen-yulin20051127/imgs/raw/master/imgs/20241205201538.png) +![](https://gitee.com/shen-yulin20051127/imgs/raw/master/imgs/20241205201815.png) +![](https://gitee.com/shen-yulin20051127/imgs/raw/master/imgs/20241205202113.png) +![](https://gitee.com/shen-yulin20051127/imgs/raw/master/imgs/20241205202409.png) -- Gitee