使用params参数即可
public ActionResult MachineProject(string Project, params string[] MID) { string str = ""; foreach (var item in MID) { str += item; } return Content(Project + "--" + str); }
使用params参数即可
public ActionResult MachineProject(string Project, params string[] MID) { string str = ""; foreach (var item in MID) { str += item; } return Content(Project + "--" + str); }