M
M
Mark2018-05-21 11:22:05
JavaScript
Mark, 2018-05-21 11:22:05

Is it possible to concatenate all files (Js, json) into html?

How can I combine all files (Js, json) into html?
https://tech.yandex.ru/maps/jsbox/2.1/object_manag...
As a result, you need to get not 3 files, but 1 in html.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Aleksei Podgaev, 2018-05-31
@alexiusp

If you don't know how to insert javascript into html, then I don't even know. Maybe start by learning the basics? For example, how the tag works . JSON is essentially a Javascript object. Those. declare a variable in javascript and assign the contents of this file to it. Just don't forget to change your function later so that it doesn't request this data from the server, but uses the value of the declared variable. <script>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question