- recycle-view可以一直使用update方法更新吗?会有很大的性能问题吗?
ready() { this.ctx = createRecycleContext({ id: 'recycleId', dataKey: 'recycleList', page: this, itemSize: { // 这个参数也可以直接传下面定义的this.itemSizeFunc函数 width: 162, height: 182 } }) ctx.append(newList) }, 因为要维护一维数组,其实表现是一个二维数组,如果使用插入和增加这些方法要很麻烦计算,请问如果我拉到数据直接用update的方法从0~length去更新全部列表对性能影响大不大,怎么去评估这一性能
2020-12-14 - 云开发调用函数出现unable to authenticate using mechanism "
云函数调用的时候报错,只有一个函数出了问题,其他没有,好像是数据库授权问题,求解 [图片] [云函数] [getRecord] : Error: errCode: -404011 cloud function execution error | errMsg: cloud.callFunction:fail requestID 2cb63002-90d3-11ea-bbe2-52540042b19b, cloud function service error code -504002, error message errCode: -502001 database request fail | errMsg: [FailedOperation.ListTable] auth error: sasl conversation error: unable to authenticate using mechanism "SCRAM-SHA-1": (AuthenticationFailed) Authentication failed.; Error: errCode: -502001 database request fail | errMsg: [FailedOperation.ListTable] auth error: sasl conversation error: unable to authenticate using mechanism "SCRAM-SHA-1": (AuthenticationFailed) Authentication failed.; at Object.returnAsCloudSDKError (:41176/var/user/node_modules/wx-server-sdk/index.js:6121) at Object.checkError (:41176/var/user/node_modules/wx-server-sdk/index.js:1418) at Promise (:41176/var/user/node_modules/wx-server-sdk/index.js:1486) at <anonymous> at process._tickCallback (:41176/appservice/internal/process/next_tick.js:188); at cloud.callFunction api; at new u (VM226 WAService.js:2) at d (VM226 WAService.js:2) at f (VM226 WAService.js:2) at Function.success (VM226 WAService.js:2) at VM226 WAService.js:2 at E (VM226 WAService.js:2) at i.<anonymous> (VM226 WAService.js:2) at i.emit (VM226 WAService.js:2) at Ii (VM226 WAService.js:2) at VM226 WAService.js:2
2020-05-08