0
我在我的UIWebView中显示WebPage。我想检测该页面上的按钮点击。在HTML文件中该按钮的Java脚本在WebView iOS中评估Javascript
代码如下:
document.getElementById("fileUploadSection").innerHTML = '<button type="button" class="btn btn-primary btn-block findJobsButton" id="txtUploadResume" onclick="validate();ok.performClick();"> </button>';
问题:我怎样才能检测到按钮被点击&我的本地方法被调用?
预先感谢
此答案提供了一种无证的方式来执行此操作:http://stackoverflow.com/a/21648391/458205 – 2015-04-02 14:34:43