We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JD-Coin/app/browser.py
Line 103 in 287af55
主要是这块,我改成下面的
if host == 'plogin.m.jd.com': code = """ $('.planBLogin').click(); console.log($('#username')); console.log($('#pwd')); setTimeout(function() {{ console.log(11111); console.log($('#username')); console.log($('#pwd')); $('#username').click(); $('#username').focus(); $('#username').trigger('touchstart'); $('#username').trigger('touchmove'); $('#username').val('{username}'); $('#username').trigger('touchend'); $('#pwd').click(); $('#pwd').focus(); $('#pwd').trigger('touchstart'); $('#pwd').trigger('touchmove'); $('#pwd').val('{password}'); $('#pwd').trigger('touchend'); }}, 4000); setTimeout(function() {{ console.log(2222222); if ({auto_submit}) {{ $('.btn.J_ping').addClass('btn-active'); $('.btn.J_ping').click(); $('.btn.J_ping').trigger('touchstart'); $('.btn.J_ping').trigger('touchmove'); $('.btn.J_ping').trigger('touchend'); }} else {{ $('#username').focus(); }} }}, 6000); """
为了方便我把jquery 嵌进去了,然后模拟点击。 但是没有效果,好像京东用 vue / reactjs 之类的框架开发的,自己搞了一套事件,导致 click 和 touch 没有效果。
但是照常理来说,点击和触摸事件应该是公共的啊,为什么用户点击的能触发,用js 就不能触发
The text was updated successfully, but these errors were encountered:
No branches or pull requests
JD-Coin/app/browser.py
Line 103 in 287af55
主要是这块,我改成下面的
为了方便我把jquery 嵌进去了,然后模拟点击。
但是没有效果,好像京东用 vue / reactjs 之类的框架开发的,自己搞了一套事件,导致 click 和 touch 没有效果。
但是照常理来说,点击和触摸事件应该是公共的啊,为什么用户点击的能触发,用js 就不能触发
The text was updated successfully, but these errors were encountered: