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)
}