How does vue display raw json data on the page? (the format should be the same)

I want to display locally acquired json data in this div in the same format (as in the figure), so I used pre, but I couldn"t show it. But consloe.log can be output in the background. Solve

  <div class="mod-2">
   <!-- json -->
         
           {{results}}
         
< / div > Data: { Results:"" } Methods: { Axios ({ Method:"get" Url:"data.json" }) .then (function (resp) { Var obj=resp.data Var jsonStr = JSON.stringify (obj,null,2) This.results=jsonStr Console.log (this.results) }


use a plug-in vue-json-pretty


https://jsfiddle.net/masongzh...
can be displayed using textarean + disabled

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-1b38775-2c122.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-1b38775-2c122.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?