<div id="app">
  <div v-text="mess + ' 表达式拼接'"></div>
  <div v-html="mess + ' 表达式拼接'"></div>
  <div v-html="messhtml + ' 表达式拼接'"></div>
  {{mess + ' 表达式拼接'}}
</div>
var vm = new Vue({
  el: "#app",
  data: {
    mess: "hello world",
    messhtml: "<h1>hello world</h1>"
  }
});

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://cdnjs.cloudflare.com/ajax/libs/vue/2.7.8/vue.min.js