requirejs
使用 RequireJS 加载 RandBox
require(['RandBox'], function(RandBox) {
// 实例化
var randBox = new RandBox();
// 然后使用:
var my_random_integer = randBox.integer();
});
最后更新于:
使用 RequireJS 加载 RandBox
require(['RandBox'], function(RandBox) {
// 实例化
var randBox = new RandBox();
// 然后使用:
var my_random_integer = randBox.integer();
});