Recently developed its own set of customer service system, we need to get through micro-channel and H5. In doing micro-channel basic expressions stumbled vue has been neglected label v-html.
effect of v-html tag is a tag H5 Dynamic Data
Example:
<template>
<view v-html="test">{{test}}</view>
</template>
<script>
export default {
data () {
return {
test:'我是一个表情<image src="https://btsstatic.oss-cn-shanghai.aliyuncs.com/admin/emoji/100.gif" width="24" height="24"></image>'
}
}
}
</script>
Then, the display interface