diff --git "a/\346\254\247\351\230\263\344\271\276/1226.md" "b/\346\254\247\351\230\263\344\271\276/1226.md" new file mode 100644 index 0000000000000000000000000000000000000000..f5186cefb742d76a4f5162f5b124b744765773e0 --- /dev/null +++ "b/\346\254\247\351\230\263\344\271\276/1226.md" @@ -0,0 +1,22 @@ +## 搜索框保留搜索值 +### Model +```c# +public class SearchViewModel +{ + public string SearchTerm{get;set;} +} +``` +### Controller +```c# +[HttpPost] +public IActionResult Search(SearchViewModel model) +{ + return View(model); +} +``` +## View +```html +
+``` \ No newline at end of file