wkwebview 用WKUserScript添加cookie,cookie的source里必须带上 path
NSString* cookieStr = [NSString stringWithFormat:@"%@=%@", name, value];
NSString* source = [NSString stringWithFormat:@"document.cookie = '%@;path=/';", cookieStr];
wkwebview 用WKUserScript添加cookie,cookie的source里必须带上 path
NSString* cookieStr = [NSString stringWithFormat:@"%@=%@", name, value];
NSString* source = [NSString stringWithFormat:@"document.cookie = '%@;path=/';", cookieStr];
本文标题:WKWebview ajax添加cookie
本文链接:https://www.haomeiwen.com/subject/mbasfxtx.html
网友评论