scroll-view锚点点击没反应
scroll-view锚点点击没反应 <!--左边--> <scroll-view class='leftScroll' scroll-y="true"> <block wx:for='{{class_pro}}'> <view class='left_txt' bindtap='clickScroll' data-id='{{item.toAction}}'>{{item.title}}\n</view> </block> </scroll-view> <!--右边--> <view class='right_1'> <scroll-view class='rightScroll' scroll-y="true" scroll-into-view="{{toView}}" scroll-with-animation="true"> <block wx:for="{{item.listName}}" wx:for-item="items"> <view class='right_pro'> <image src='../files/pro1.jpg' class='right_pro_img'></image> <text>{{items.title_list}} </text> </view> </block> </scroll-view> </view> //锚点点击方法 clickScroll:function(e){ var obj = e.currentTarget.dataset.id this.setData({ toView: obj }) console.log(this.data.toView); } 点击ID和指向ID是一致的,但是就是点击了没反应