javascript - declaration Js file in another Js file -


I have a question

and I

  1. 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

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -