uniapp-编写代码小程序运行点击事件传参undefinedJAY.LIN 收录于 Uniapp 2024-11-05 约 122 字 预计阅读 1 分钟 目录 uniapp的项目在小程序上运行时点击事件传的参数是undefined解决uniapp 编写代码小程序运行点击事件传参undefineduniapp的项目在小程序上运行时点击事件传的参数是undefined解决 <view class="oper-item" v-for="(pro,index) in operlist" :key="index" @click="getPath(pro.path)">把:key的值设为index就可Please enable JavaScript to view the comments powered by Giscus.