收藏
回答

wxml编译错误:unexpected character?

回答关注问题邀请回答
收藏

2 个回答

  • 工号 9527
    工号 9527
    2022-07-04

    有不可见字符?

    2022-07-04
    有用
    回复 2
    • 微醺亮
      微醺亮
      2023-04-20
      2023-04-20
      回复
    • Runner
      Runner
      2023-04-23
      我也遇到了这个问题,求助各位大佬
      2023-04-23
      回复
  • golem
    golem
    2022-07-01

    <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="textname="usernamevalue="{{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>


    2022-07-01
    有用
    回复
登录 后发表内容