开发者

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("");

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜