h5 页面展示从后台接受的富文本信息(图片预览) vant
1.下载安装Vant
npm install vant --save
2.main.js引入
import {
ImagePreview} from 'vant';
Vue.use(ImagePreview);
3.代码
<div class="detailMsg" v-html="str" @click="previewImage($event)"></div>
data(){
return {
imgUrls:[],
str:'<p><span style="color:#666666;font-size:14px;white-space:normal;background-co