Skip to content

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

Description

@salmanit

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions