【问题标题】:How can i convert this code to swift?我怎样才能将此代码转换为swift?
【发布时间】:2016-05-01 11:44:30
【问题描述】:
NSstring *strURL =[NSString stringwithformat:@"http://localhost/example/login.php?email=%@&password=%@",email.text,password.text];

如何将其转换为 Swift?

【问题讨论】:

标签: objective-c swift


【解决方案1】:
var strURL = "http://localhost/example/login.php?email=\(email.text)&password=\(password.text)"

【讨论】:

    猜你喜欢
    • 2021-12-16
    • 1970-01-01
    • 2018-01-23
    • 1970-01-01
    • 2022-10-14
    • 2013-07-29
    • 2021-06-21
    • 1970-01-01
    • 2022-11-29
    相关资源
    最近更新 更多