收藏
回答

inc 使用报错?请问到底是什么原因

guest:function(e){
    
 
   var num
   const db = wx.cloud.database()
   db.collection('guest').doc(
     'xxxxxxxxxxxxx').update({
       data: {
        
         num:_inc(1)
       },
       success: function (res) {
         console.log(res.data)
       }
     })
 
 
 },

VM267:1 thirdScriptError

_inc is not defined; [Component] Event Handler Error @ pages/index2/index2#bound guest

ReferenceError: _inc is not defined



最后一次编辑于  09-14
回答关注问题邀请回答
收藏

2 个回答

问题标签