webVIew中点击添加图片无反应
val settings = binding.webView.settings
settings.javaScriptEnabled = true
settings.allowFileAccess = true
settings.allowContentAccess = true
settings.domStorageEnabled = true
settings.saveFormData = false
binding.webView.webChromeClient = WebChromeClient()
binding.webView.addJavascriptInterface(asForjs, "AndroidHt")
webView.setWebChromeClient(new WebChromeClient(){
@override
public boolean onShowFileChooser(WebView webView, ValueCallback
FileChooserParams fileChooserParams) {
//实现文件选择器功能
return true
}
})