Splash images_enabled 属性

images_enabled属性用于设置加载页面时是否加载图片,如下,禁止之后,返回的页面截图就不会带有任何图片,加载速度也会快很多

function main(splash, args)
  splash.images_enabled = false
  assert(splash:go('https://www.baidu.com/'))
  return {png=splash:png()}
end

 

 

 

 

 

     

posted @ 2019-03-18 15:17  孔雀东南飞  阅读(318)  评论(0编辑  收藏  举报