that.setData({
product_text: res.data.product_text
})
res.data.product_text是包含标签的数据
例如
<view> <image src="地址" alt="xxx" title="xxx"/> <text>内容</text></view> |
这样
但显示到页面上的只是一段字符串,没有显示出图片,就是说标签全转换成了字符串
有没有类似jquery里.html()这样的方法?

噢..试了一下但是是空?
js是这样↓
product_text = res.data.product_text
WxParse.wxParse('product_text', 'html',product_text, that,0);
html是这样↓
<template is="wxParse" data="{{wxParseData:product_text.nodes}}"/>
用插件wxParse