让myRequest = URLRequest(url:myURL!)
webviewit!.load(myRequest)
答案 0 :(得分:2)
有关传递标头参数值,请参见此代码。
let weburl = URL(string: "http://yourURL")
let request = NSMutableURLRequest(url: weburl! as URL)
request.setValue("HEADER_VALUE", forHTTPHeaderField:"HEADER_NAME")
myweb.load(request as URLRequest)