双引号内的空格
发布于 5 年前 作者 xiulandeng 2530 次浏览 来自 问答

v1.02.1807200的前一版本,因为刚刚自动更新了

wxml页面中,有时双引号内尾部增加了空格。

没找到原因,是否是因为格式化代码引发?

bind函数名发生过,class="abc"也发生过。

示例:

<text class="motto">{{mottotext}}</text>

<textclass="motto_">{{mottotext}}</text>

<image bindtap="bindViewTap" class="userinfo-avatar" src="{{userInfo.avatarUrl}} " mode="cover"></image>

<image bindtap="bindViewTap_" class="userinfo-avatar" src="{{userInfo.avatarUrl}} " mode="cover"></image>

(下划线表示被增加的空格。因为此处提交问题时空格会被自动删除。)

回到顶部