1、模拟真实手动点击
document.getElementById("firstPage").click();
2、调用点击事件,但不刷新页面
$("#firstPage").click();
1、模拟真实手动点击
document.getElementById("firstPage").click();
2、调用点击事件,但不刷新页面
$("#firstPage").click();
button.performClick();
http://blog.csdn.net/rrr4578/article/details/27527301
view.performClick();
引用:://bbs.chinaunix.net/thread-2317735-1-1.html众所周知,Linux上可以通过sendEvent来模拟键盘或者鼠标点击事件。而Android是基于Linux2.6平台的,所以也应该可以模拟点击事件,在很多网络文章中也有提到。但是我在Motolola的Xoom,Android3.0系统上,试图通过adb -d shell sendevent /dev/input/event6 3 0 180adb -d shell sendevent /dev/input/event6 3 1 70adb -d shell sendevent /dev/in
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M