天天看点

微信小程序云开发删除所有任务

//删除任务表
  deltaskinfo(){
    const db = wx.cloud.database();
    const _ = db.command;
    /**
      * 删除集合counters中的数据
      */
      db.collection('taskInfo').where({
        bidnum:_.exists(true),
      }).remove().then(res=>{
       console.log(res)
     })
 
  },
           

继续阅读