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>
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e494cd-44265.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e494cd-44265.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?