摘要: import BScroll from "better-scroll"; selectkey(index){ 获取右侧所有元素的 classname const citylist = this.$refs.area_scroll.getElementsByClassName( "citylist" 阅读全文
posted @ 2020-09-16 16:46 心意如水hucuie22 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 子组件中<div class="area" ref="area_scroll" v-if="cityInfo"> import BScroll from "better-scroll"; methods: { initScroll() { this.scroll = new BScroll(this 阅读全文
posted @ 2020-09-16 16:03 心意如水hucuie22 阅读(578) 评论(0) 推荐(0) 编辑