public static String LOGIN = "http://ui.ptlogin2.qq.com/cgi-bin/login?appid=46000101&style=8&lang=&low_login=1&hide_title_bar=1&hide_close_icon=1&daid=6&hln_css=http://mat1.gtimg.com/www/mb/images/logo244x100.png&s_url=https%3A%2F%2F2.zoppoz.workers.dev%3A443%2Fhttp%2Fw.t.qq.com%2Ftouch";
final String tencent_url = LOGIN;
try {
String js = FileUtils.readAssetsFile("oauthfortencent.js", TencentWeiboActivity.this);
js = js.replace("%u%", tAccount).replace("%p%", tPassword);
Document dom = Jsoup.connect(LOGIN).get();
html = dom.toString();
html = html.replace("</head>", js + "</head>")
.replace("action-type=\"submit\"", "action-type=\"submit\" id=\"submit\"");
return html;
} catch (Exception e) {
e.printStackTrace();
}
mWebView.loadDataWithBaseURL("http://open.qq.com/", html, "text/html", "UTF-8", "");
js代码
function fillAccount(){ document.getElementById("u").value = '%u%'; document.getElementById("p").value = '%p%'; document.getElementById("go").click(); }
原本的网页是这样子的

被我加了js之后变成这样子:

登录按钮也不能被点击,
我应该怎么弄才可以,求助,谢谢。
js注入应该怎么注入,不是代码中那样子的么
求助,如果解释的话,可以详细一点么,谢谢
我想要实现的效果就是把账号和密码自动填入网页中