要創建全球http請求功能/擴展與Alamofire它就像斯威夫特3 - 如何定義回調函數的參數
function Request(requestPath:String, requestParams:Any, onComplate:Void) {
// stuff here, when async request complate i want to call onComplate function
// like C# method.Invoke() or func.Invoke()
}
可以使用Clousers –