# CloudID

Declares the string as cloudID. A string is passed via the API. See how to get open data via cloud call for details.

# Use Case

wx.cloud.callFunction({
  name: 'myFunction',
  data: {
    weRunData: wx.cloud.CloudID('xxx'), // This CloudID value will be replaced via the cloud function.
    obj: {
      shareInfo: wx.cloud.CloudID('yyy'), // The CloudID in non-top fields will not be replaced and will be displayed as the original string.
    }
  }
})
点击咨询小助手