let tempurl ="file://\(本地路径)"
let accessurl =NSURL(string: tempurl)?.deletingLastPathComponent
if let access = accessurl,let ul =URL(string: tempurl){
self.wkweb.loadFileURL(ul, allowingReadAccessTo: access)
}
let tempurl ="file://\(本地路径)"
let accessurl =NSURL(string: tempurl)?.deletingLastPathComponent
if let access = accessurl,let ul =URL(string: tempurl){
self.wkweb.loadFileURL(ul, allowingReadAccessTo: access)
}
本文标题:WKWebview加载本地文件(本地资源文件)swift
本文链接:https://www.haomeiwen.com/subject/tjbaeqtx.html
网友评论