<unicloud-db ref="udb" v-slot:default="{data, loading, error, options}" :options="options" :collection="collectionList" field="notes" :where="queryWhere" :getone="true" :manual="true">  
      <view v-if="error">{{error.message}}</view>  
      <view v-else-if="loading">  
        <uni-load-more :contentText="loadMore" status="loading"></uni-load-more>  
      </view>  
      <view v-else-if="data">  
        <view>  
          <text>编号:</text>  
          <text>{{data.notes}}</text>  
        </view>  
      </view>  
    </unicloud-db>  
<button type="primary" plain="true" @click="btn()">点击</button>
btn(){  
 console.log(${data.notes});
}
不知道data.notes如何在js里面获取到
            
            
            
            
j***@qq.com (作者)
试试去
2023-11-28 15:36