18.08.2018, 01:33
Quote:
Here is js code, you put this in your main js, or inside <script> tags on index (main) file.
Just replace "PUT_YOUR_URL_HERE" with your url After request is finished successfully your data will be stored in "window.API_DATA" NOTE: API Must return proper JSON format NOTE: ES6 is supported on most current generation browsers, you can checkout compatibility table here PHP код:
|