收藏
回答

setClipboardData 报错

wx.setClipboardData({
  data: 'data',
  success: function(res) {
    wx.getClipboardData({
      success: function(res) {
        console.log(res.data) // data
      }
    })
  }
})



WAService.js:3 appServiceSDKScriptError

Cannot convert undefined or null to object;at api setClipboardData beforeSuccess callback function

TypeError: Cannot convert undefined or null to object

    at Function.constructor.keys (<anonymous>)

    at i (http://127.0.0.1:9973/appservice/__dev__/WAService.js:6:29933)

    at Function.beforeSuccess (http://127.0.0.1:9973/appservice/__dev__/WAService.js:6:29504)

    at Object.beforeSuccess (http://127.0.0.1:9973/appservice/__dev__/WAService.js:4:374)

    at Function.<anonymous> (http://127.0.0.1:9973/appservice/__dev__/WAService.js:3:29341)

    at Function.constructor.function.setTimeout (http://127.0.0.1:9973/appservice/appservice:1183:6881)

    at http://127.0.0.1:9973/appservice/__dev__/WAService.js:3:9996


最后一次编辑于  2018-02-02  (未经腾讯允许,不得转载)
邀请回答
复制链接收藏关注问题回答

3 个回答