setClipboardData 报错
发布于 5 年前 作者 chaolong 13311 次浏览 来自 问答
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

3 回复

请问选了什么版本的基础库

回到顶部