【个人笔记】【我的私房代码】
发布于 4 年前 作者 chao52 1836 次浏览 来自 分享

前几天有偿征集了两个方案,现在把代码公布下,这个问题非常考验思维逻辑能力

问题描述

目前有一个数组,长度为1000,如何把这么大的数据量,渲染到swiper中,保证swiper左右滑动时,丝滑般流畅

使用场景

一般会用于在线答题小程序答题过程中,有时候题库大,顺序答题会存在这个问题,所以说需求来自真实项目场景。

1、

https://gitee.com/jgl1210/minicode20200327

https://developers.weixin.qq.com/s/l99qI8mv7Rgy

https://developers.weixin.qq.com/s/3dsCzam176gk


2、

https://gitee.com/jgl1210/minicode20200329

https://developers.weixin.qq.com/s/DUzMc6mw73g6


非常感谢参与的同学

wx.cloud.callFunction({
  // 要调用的云函数名称
  name: 'add',
  // 传递给云函数的event参数
  data: {
    x: 1,
    y: 2,
  }
}).then(res => {
  // output: res.result === 3
}).catch(err => {
  // handle error
})
回到顶部