js與webview交互 android怎么在webview中加載js文件?
android怎么在webview中加載js文件?String htmlCode = 下面是htmlCode中的值 web
android怎么在webview中加載js文件?
String htmlCode = 下面是htmlCode中的值
webview中用loadData(htmlCode) //webview加載html代碼把這個jquery.js文件放到了assets文件夾下src="https://img.kmw.comfile:///android_asset/xxx.js"并且要用String baseUrl = "file:///android_asset"WV_View.loadDataWithBaseURL(baseUrl, strHtml, "text/html", "utf-8", null)