[Vuejs]-When using the vue.js, there is a problem that the character is not output if you insert the <>character after the v-model variable declaration

0👍

I don’t see any problem or I didn’t understand your problem

const app = new Vue({
  el: "#app",
  data () {
    return{
      pandogsogeon: ''
    }
  },
  mounted () {
    this.createText()
  },
  methods: {
    createText () {
      const temp = document.createElement("div");
      temp.textContent = "aasdfas<>asdfad<>";
      this.pandogsogeon = temp.textContent;
      console.log('pando', this.pandogsogeon)
    }
  }
})
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.17/vue.js"></script>
<div id="app">
{{ pandogsogeon }}
</div>

Leave a comment