javascript - declaration Js file in another Js file -
I have a question
and I
- Date. Js want to declare in control.js - & gt; To use the datetime function in some controls, date.js.
Is it possible that a JS file in another?
Thanks for the reply.
I am adding the statement described at the top of my JS file.
document.write ('& lt; scr' + 'ipt type = "text / javascript" src = "file2.js" & gt; & gt; / scr' + 'ipt & gt; ');
But why are you included? You do not need include . You can just add a code to the existing javascript file . Or you can call JS files from the HTML file.
Comments
Post a Comment