今天写小程序突然要用到Scroll_view看了网上好多的教程,然后自己写发现都不对,最后仔仔细细的看了一遍开发文档才知道那里错了。
当时是这样写的
<scroll-view scroll-y="true" scroll-into-view="{
{toView}}" scroll-with-animation="true">
<view wx:for="{
{adressMessages}}" id="{
{item.ids}}">
<text class='diming'>{
{item.diming}}</text>
...
</view>
</scroll-view>
<!这里设置浮动按钮,点击跳转>
<view class='fudong'>
<view wx:for="{
{btnMessages}}">
<view class='city'>
<text bindtap='click' data-id="{
{item.id}}">{
{item.city}}</text>
</view>
<view><text decode="{
{true}}"> </text></view>
</vie