wait()方法用于控制页面的等待时间,如下,实现访问淘宝并等待2秒,随后返回淘宝页面的源代码:

function main(splash)
  splash:go("https://www.taobao.com/")
  splash:wait(2)
  return {html=splash:html()}
end

 

 

 

 

 

 

    

相关文章:

  • 2021-07-30
  • 2021-11-19
  • 2021-07-30
  • 2021-07-07
  • 2021-11-05
  • 2022-12-23
  • 2021-10-27
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-13
相关资源
相似解决方案