uniapp 运行微信小程序:使用后端接口返回数据无法显示问题 ,text 标签不兼容 v-html

解决方法:将text 标签替换成view标签即可

问题:

微信小程序:使用text标签使用v-html无法显示

有问题的地方:

<view class="title">
		<u-icon name='email-fill' color="#B30000" size="40" ></u-icon>
		<text v-html="item.title"></text>
</view>

替换后

<view class="title">
		<u-icon name='email-fill' color="#B30000" size="40" ></u-icon>
		<view v-html="item.title"></view>
</view>

猜你喜欢

转载自blog.csdn.net/weixin_44948981/article/details/129086691