function linkClick(e) {
alert(e.target.href);
}
function setDefaultLinkHandlers(){
links = document.getElementsByTagName('a');
for (i = 0; i < links.length; i++)
links[i].addEventListener('click', linkClick, false);
}
document.onload=setDefaultLinkHandlers();
这是 JavaScript
String Url = "http://dev.taxmann.com/actruleservice/ActRuleService.asmx/GetFileHTML?FileID_or_FullPath=102120000000025184";
String htmlResp = getStringPage(Url);
WebSettings webSettings = webview.getSettings();
String k = Html.fromHtml((String) htmlResp).toString().replace(");'", "");
这k
是获取 HTML 的字符串,我必须在此 HTML 中添加该 JavaScript。谁能告诉我如何添加这个?