一门APP开发教程

标题: 通过JS来控制APP截屏功能 [打印本页]

作者: 一门APP@APP截屏    时间: 2019-7-24 22:46
标题: 通过JS来控制APP截屏功能
captureWebPage 截屏网页快照
截屏当前浏览的网页快照,保存到相册。
  1. jsBridge.captureWebPage({
  2.   fullPage: false,
  3.   share   : true
  4. });

  5. /*
  6. 参数说明:
  7. {
  8.   fullPage: //是否整页截屏(滚屏截图,长屏),布尔类型
  9.   share   : //截屏后是否弹出分享,布尔类型
  10. }
  11. */
复制代码
(, 下载次数: 34)

captureWebPage 截屏网页快照(整页截屏,长图)
  1. jsBridge.captureWebPage({
  2.   fullPage: true,
  3.   share   : true
  4. });
复制代码


更多技巧,请查看demo链接!





欢迎光临 一门APP开发教程 (https://bbs.yimenapp.com/) Powered by Discuz! X3.4