« Axios » : différence entre les versions
De Banane Atomic
Aller à la navigationAller à la recherche
(→Links) |
|||
Ligne 6 : | Ligne 6 : | ||
= [https://stackoverflow.com/questions/44877904/how-do-you-import-a-javascript-package-from-a-cdn-script-tag-in-react Client side] = | = [https://stackoverflow.com/questions/44877904/how-do-you-import-a-javascript-package-from-a-cdn-script-tag-in-react Client side] = | ||
<kode lang='html'> | <kode lang='html'> | ||
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script> | <script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script> | ||
<script> | <script> |
Version du 27 janvier 2021 à 14:47
Links
Client side
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script> <script> const axios = window.axios; </script> </body> </html> |