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 0000000000000000000000000000000000000000..3133c3fcfabd531902c6161876c94033943db1ff --- /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)