Skip to content
New issue

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

点击网页图片查看大图 问题请教 #9

Open
salmanit opened this issue May 4, 2017 · 0 comments
Open

点击网页图片查看大图 问题请教 #9

salmanit opened this issue May 4, 2017 · 0 comments

Comments

@salmanit
Copy link

salmanit commented May 4, 2017

那个注入js代码添加点击事件试了下是可以的,普通网页没问题。
可像那些列表页面,也就是网页进去是js代码请求接口获取列表数据,然后才for循环添加的img标签吧,这种的话 在onPageFinished里执行addImageClickListener()也不行啊,这时候网页还没加载完了吧。那些img标签都还没添加进来了。。所以就无效了。。我试着延迟两秒执行addImageClickListener方法就没问题了。 所以现在的问题是,咋判断网页是彻底的加载完了?
求高人指点,3q

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant