摘要: let imageSrc = that.swiperList[index].picUrl; that.setBackgroundColor(imageSrc, index); setBackgroundColor(imageSrc,index) { console.log(imageSrc, 'im 阅读全文
posted @ 2021-07-02 17:32 吃饭睡觉打痘痘 阅读(1178) 评论(0) 推荐(0) 编辑
摘要: let imgSrc = that.swiperList[index].picUrl; let img = new Image(); img.onload = ()=> { that.getImageMainColor(img, index);// 图片标记 } img.src=imgSrc; ge 阅读全文
posted @ 2021-07-02 17:30 吃饭睡觉打痘痘 阅读(288) 评论(0) 推荐(0) 编辑
摘要: <template> <div id="app"> <button @click="changeProvide">点我改变值</button> </div> </template> <script> export default { name: 'App', data() { return { pr 阅读全文
posted @ 2021-07-02 17:23 吃饭睡觉打痘痘 阅读(419) 评论(0) 推荐(0) 编辑