javascript - How to use cordova.js in another .js intel xdk -


i'm developing app using intel xdk cordova. have .js functions, in .js use cordova's lib, can't. importing cordova.js before importing .js html page can't use cordova's lib. way can use creating tag in on html. project working cordova, i'm sure of because testing same code in script tag @ html works fine. so, how can use cordova's lib @ javascript?

every html page this:

<script type="text/javascript" src="cordova.js"> <script type="text/javascript" src="myjs.js"> 

but doesn't work. if in html page:

<script> //use cordova's lib here </script> 

it works.


Comments

Popular posts from this blog

xml - Extract substrings with XSLT -

math - "ELO Rating" and how does "TSR Rating" work? -

How can do a tuple comparison in coffeescript similar to that in python? -