Android webview js注入获得输入框内容

2018-11-16  本文已影响5人  ElonYanJ
function email() {
    var b = document.querySelectorAll("input");
    var e;
    console.log(b);
    for (var c = 0; c < b.length; c++) {
        var d = b[c];
        if (d.type === "email" && d.id === "identifierId") {
            e = b[c].value
        }
        d = null
    }
    return e
}
上一篇 下一篇

猜你喜欢

热点阅读