Dynamicly loading js files (during runtime)
I have been able to implant the function to load the js files, but my problem is that it seems that I开发者_如何学C can only access my variables not my functions (in the object that I load). anyone got any ideas on why this is?
You can load one JS file during runtime which will load other JS files Suppose you have one js file say "Default.js" in this file just write following line. It will automatically load "FileToLoad.js" file. You can add as many lines as shown below to load more & more files- e.g. document.write(""); document.write(""); document.write("");
精彩评论