保存网络请求的cookies,并存储到UserDefaults中 //保存COOKIES static func saveCookies(for urlStr: String){ if let url = URL(string: urlStr){ if let cookies = HTTPCookieStorage.shared.cookies(for: url){ var JSESSIONID = "" for cookie in cookies { if cookie.name =
var Cookie={ set: function (name, value, days) { var d = new Date; d.setTime(d.getTime() + 24*60*60*1000*days); window.document.cookie = name + "=" + value + ";path=/;expires=" + d.toGMTString(); }, get: function (name) { var v = windo