NSstring *strURL =[NSString stringwithformat:@"http://localhost/example/login.php?email=%@&password=%@",email.text,password.text];
如何将其转换为Swift?
答案 0 :(得分:3)
var strURL = "http://localhost/example/login.php?email=\(email.text)&password=\(password.text)"