<view> <view wx:if="{{!isedit}}"> <view class="section"> <view class="section-title">昵称:</view> <view>{{username}}</view> </view> <view class="section"> <view class="section-title">性别:</view> <view>{{gender}}</view> </view> </view> <view wx:else> <view class="section"> <view class="section-title">姓名:</view> <view> <input type="text" name="username" value="{{username}}" placeholder="请输入姓名"/> </view> </view> <view class="section"> <view class="section-title">性别:</view> <view> <radio-group name="gender"> <label><radio value="男" checked="{{gender=='男'?'checked':''}}"/>男</label> <label><radio value="女" checked="{{gender=='女'?'checked':''}}"/>女</label> </radio-group> </view> </view> <button bindtap="save">保存</button> <button bindtap="cancel">取消</button> </view> </view>
wxml编译错误:unexpected character?[图片] [图片]
2022-07-01