微信小程序API用户截屏事件,wx.onUserCaptureScreen监听用户主动截屏事件
2020-09-27
导读:wx.onUserCaptureScreen(CALLBACK) 基础库 1.4.0 开始支持,低版本需做兼容处理 监听用户主动截屏事件,用户使用系统截屏按键截屏时触发此事件 CALLBACK返回参数: 无 示例代码: wx.onUserCapture...
wx.onUserCaptureScreen(CALLBACK)
基础库 1.4.0 开始支持,低版本需做兼容处理
监听用户主动截屏事件,用户使用系统截屏按键截屏时触发此事件
CALLBACK返回参数:
无
示例代码:
wx.onUserCaptureScreen(function(res) {
console.log('用户截屏了')
})
更多微信小程序开发教程,可以关注hi小程序。
第二部分:如何开通一个小商店