MVC 接收参数数组(集合) 示例样本: public class Person { public string FirstName { get; set; } public string LastName { get; set; } ... } // ASP.NET MVC [HttpPost] public ActionResult Create(List<Person> persons) { // doSomething. }
//: Playground - noun: a place where people can play import UIKit // 外部参数的作用是为了让程序员调用代码的时候能清晰的看出所传参数代表的意思 // 内部参数指的就是定义函数的时候所设定需要传入的参数 func sayHello(nickName nickName:String, greeting:String) -> String { let result = greeting + "," + nickName