云数据库,如何判断doc是否存在发布于 6 年前作者 xiuyingshi15449 次浏览最后编辑 6 年前来自 askdb.collection('xxx').doc('xxxid').get() 上面如果 xxxid 不存在,会抛错: {"errCode":-1,"errMsg":"document.get:fail document with _id xxxid does not exist; at document.get api; "}} 请问正确判断doc是否存在正确方式是什么?