前言:使用uniapp开发商城小程序的项目经验总结 html css: js: 随机数组索引:let index= Math.floor(Math.random() * arr.length); uniapp: