loading js files dynamically via another js file?

前端 未结 5 1876
慢半拍i
慢半拍i 2020-12-09 06:30

is there anyway to load other JS files from within a single JS file. I would like to point my individual pages \"ITS\" js file and that js file would load jquery, other js f

5条回答
  •  青春惊慌失措
    2020-12-09 07:30

    I'd suggest you take a look at labJS. It's a library made specifically to load Javascript. As they say..."The core purpose of LABjs is to be an all-purpose, on-demand JavaScript loader, capable of loading any JavaScript resource, from any location, into any page, at any time."

    See the labJS home page for more information.

提交回复
热议问题