收藏
回答

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


回答关注问题邀请回答
收藏

3 个回答

  • 工号 9527
    工号 9527
    2018-02-02

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

    2018-02-02
    有用
    回复
  • 思诚^_^
    思诚^_^
    2018-07-24

    同问

    2018-07-24
    有用
    回复
  • 凸
    2018-02-02

     1.9

    2018-02-02
    有用
    回复
登录 后发表内容