mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00:40 +03:00
Improving examples
This commit is contained in:
@@ -8,9 +8,9 @@
|
||||
<h1>axios.get</h1>
|
||||
<ul id="people" class="list-unstyled"></ul>
|
||||
|
||||
<script src="/dist/axios.min.js"></script>
|
||||
<script src="/axios.min.js"></script>
|
||||
<script>
|
||||
axios.get('people.json')
|
||||
axios.get('/get/server')
|
||||
.then(function (response) {
|
||||
document.getElementById('people').innerHTML = response.data.map(function (person) {
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user