MVC中,Html.DropDownListFor怎么绑定数据①.在Action中查询要绑定到DropDownListFor的数据,并赋值给ViewBag:程序代码public ActionResult Create(){ViewBag.Categories = new SelectList(db.C2023-02-19html-css310