Answer the question
In order to leave comments, you need to log in
Why is the json file not parsed via http, or locally?
new Vue({
el: '#app',
data() {
return {
info: null
};
},
mounted() {
axios
.get('http://likser.ru/tickets.json')
.then(response => (this.info = response));
}
});
<html>
<head>
<link rel="stylesheet" href="index.css">
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
</head>
<body>
<div id="app">
{{info}}
</div>
<script src="index.pack.js"></script>
</body>
</html>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question