加上下面这段就报错了
if (this.data.minusnum > 0) {
var lastnum = this.data.allnum - this.data.minusnum
kindshow.where({
title:this.data.tag
}).update({
data:{
lastnum:lastnum
}
})
};
错误如下
VM61:1 thirdScriptError
errCode: -1 | errMsg: query.update is only available in server SDK / API; [Component] Event Handler Error @ pages/write/write#bound create
Error: errCode: -1 | errMsg: query.update is only available in server SDK / API
at new u (WAService.js:1:128214)
at n.Za.n.update (WAService.js:1:386263)
这个表插入数据时没有问题,为什么update就不行??、