[英]How can I get data from JavaScript in webview?
This is my JavaScript and HTML in iOS Project: 这是我在iOS Project中的JavaScript和HTML:
<input type="file" id="upload">
and I open the HTML in my webview 然后在Webview中打开HTML
func webload() {
let myPath = NSBundle.mainBundle().pathForResource("index", ofType: "html")
webview.loadRequest(NSURLRequest(URL: NSURL(string: myPath!)!))
}
but how can I get the file on My iOS APP? 但是如何在我的iOS APP上获取文件?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.