How does Vue display the data on a web page?

how can RT, help render the data obtained from the database in the form of a web page? The front end I use is Vue.js, and the back end is node.js. Now I can input the search information in the front end, then post to the back end, and the back end post to the database to find the data and print it out in the console. I just want to ask how the returned data can be displayed on my front end, that is, the web page.
previously tried to use iframe, but iframe doesn"t seem to be able to update dynamically, and the resulting data can"t be displayed on the web page. I don"t know if there is any way to do this, that is, I post the input value and then display the data returned from the database at the bottom of the input interface.

Mar.04,2021

look at you the question is that there is a html tag string in the data returned after the request, and then parse it into htm display? If so, you can pass the returned data to him with a html tag with v-html in it.


<span>Message: {{ msg }}</span>

refer to the official document ide/syntax.html" rel=" nofollow noreferrer "> https://cn.vuejs.org/v2/guide.


save the obtained data in data, and then take out the data in data to render

.

    <template>
      <div>
        {{myData.name}} // 
      </div>
    </template>
    
    <script>
    export default {
      data () {
        return {
          myData: {
            name: ""
          }
        }
      },
      methods: {
        getData () {
          const getFromDb = {name: 1} // 
          this.myData = getFromDb // data
        }
      }
    }
    </script>
Menu