使用self.setData() 报错 Converting circular structure to JSON,有的页面是好的,有的报错
wxml
<picker class="screenPicker" b <picker class="screenPicker" bindchange="regionChange" value="{{regionIndex}}" mode="selector" range-key="value" range="{{regionList}}">
<view class="picker">
<view class="storeName">{{regionList[regionIndex].value}}</view>
<image mode="widthFix" class="xImage" src="../../static/image/x.png"></image>
</view>
js
regionChange(event) regionChange(event){
let self = this
debugger
console.log(event.detail.value,self.data.regionList)
self.setData()
}
应该是 console.log 打印了一些自循环结构的内容