获取数据项
操作步骤
参数名
类型
说明
参数
类型
必填
说明
示例
exports.main = async function getRecord() {
try {
let tableName = 'product'
let recordID = '59897882ff650c0477f00485'
let Product = new BaaS.TableObject(tableName)
let res = await Product.get(recordID)
// success
return res
} catch(err) {
// error
throw err
}
}错误码 err.code
可能的原因
字段过滤与扩展
Last updated
Was this helpful?