在列表中对某个单独的view赋值
发布于 5 年前 作者 min63 10360 次浏览 来自 问答

如图:

在这个table中 我想对aa赋值,需要怎么做呢怎么通过view id赋值?

代码:

<view class="container">
    <view class="table">
        <view class="tr">
            <view class="th">标题1</view>
            <view class="th">标题2</view>
            <view class="th">标题3</view>
            <view class="th">标题4</view>
            <view class="th">标题5</view>
        </view>
        <view class="tr" wx:for="{{userInfo}}">
            <view class="td">id</view>
            <view class="td" id="id_{{item.id}}" data-hi="2" data-id="99" bindtap="editStatus">{{item.name}}</view>
            <view class="td">5</view>
            <view class="td">6</view>
            <view class="td">7</view>
        </view>
    </view>
</view>
回到顶部