LoadScript

一个用于按顺序加载外部js的脚本的库

This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @require https://update.greasyfork.org/scripts/10108/54092/LoadScript.js

Author
bramblex
Version
1.2
Created
2015-05-27
Updated
2015-05-27
License
N/A

简介

一个用于按顺序加载外部js的脚本的库

用法

  var urls = [
   'http://cdnjs.net/ajax/libs/jquery/2.1.4/jquery.min.js',
   'http://cdnjs.net/ajax/libs/jquery.blockUI/2.66.0-2013.10.09/jquery.blockUI.min.js'
  ];

  var onReady = function onReady(){
    $.blockUI();
  };

  loadScript(urls, onReady);