【MVC】使用FormCollection获取Form表单数据

        public ActionResult Create(FormCollection form)
        {
            string name = form["name"];  //姓名
            string mobile = form["mobile"];  //手机号

            return View();
        }

 

posted @ 2019-02-18 09:31  张伟大  阅读(2354)  评论(0编辑  收藏  举报