该怎么重置piker和textview等组件?

发布于 8 年前作者 yguo4462 次浏览最后编辑 8 年前来自 ask

我想在request之后重置piker和textarea,请问该怎么做?设置什么值?

<view class=‘view_head’>

<view class=‘view_head_content’>

<picker class=‘pk’ bindchange=“bindPickerChange” value=“{{stockindex}}” range=‘{{stockNos}}’ range-key=“{{‘value’}}”>

<view class=“picker”>{{stockNos[stockindex].value}}</view>

</picker>

</view>

<view class=‘view_head_content’>

<picker class=‘pk’ mode=“date” value=“{{date}}” start=“{{nowDate}}” end=“{{endDate}}” bindchange=“bindDateChange”>

<view class=“picker”>{{date}}</view>

</picker>

</view>

<view class=‘view_head_content’>

<textarea class=‘txtarea’ bindinput=‘remarkInput’></textarea>

</view>

2 回复
ogong
ogong1 楼6 年前

请问您这个问题解决了吗

rshao
rshao2 楼6 年前

这。。。

重新setData

至于该怎么用

我觉得还是该好好理解理解文档