D
D
danilr2019-06-12 12:58:01
JavaScript
danilr, 2019-06-12 12:58:01

How to include a js file in another js file (without a faucet), then use the data in Vue?

such a structure - there is a main html file, a js folder with several files, one of them is the api.js file, where the constant is stored - an object that I need to use in another js file (in which I work with Vue). How to include one file in another without a collector?
5d00cc9ac0fd1988736861.png
5d00cca38ab7a835845342.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Robur, 2019-06-12
@danilr

Without a collector - connect everything in html with your hands and pass the necessary variables through the global scope

E
Eugene Chefranov, 2019-06-12
@Chefranov

https://learn.javascript.ru/modules
https://developer.mozilla.org/ru/docs/Web/JavaScri...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question