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