我怎样才能将此代码转换为swift?

时间:2016-01-25 08:23:32

标签: objective-c swift

NSstring *strURL =[NSString stringwithformat:@"http://localhost/example/login.php?email=%@&password=%@",email.text,password.text];

如何将其转换为Swift?

1 个答案:

答案 0 :(得分:3)

var strURL = "http://localhost/example/login.php?email=\(email.text)&password=\(password.text)"