[英]How can I get data from JavaScript in webview?
這是我在iOS Project中的JavaScript和HTML:
<input type="file" id="upload">
然后在Webview中打開HTML
func webload() {
let myPath = NSBundle.mainBundle().pathForResource("index", ofType: "html")
webview.loadRequest(NSURLRequest(URL: NSURL(string: myPath!)!))
}
但是如何在我的iOS APP上獲取文件?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.