0

How to read and use one js function into another js file?

16th May 2017, 11:09 AM
Avijit Khandelwal
3 ответов
+ 17
import them into a common html page <script src=source1></script> <script src=source2></script>
16th May 2017, 11:11 AM
Valen.H. ~
Valen.H. ~ - avatar
+ 17
AJAX then.... var aj = new XMLHttpRequest(); aj.open("GET","location"); aj.send(); aj.onload = function() { eval(this.responseText); };
16th May 2017, 11:49 AM
Valen.H. ~
Valen.H. ~ - avatar
0
my prog is based on command line in desktop...not web based...
16th May 2017, 11:47 AM
Avijit Khandelwal