Skip to content

SW:m1n1‐Damarcusjonesaichips

corp-jones-damarcus edited this page Jul 6, 2024 · 1 revision

https://github.com/amdjs/amdjs-api.wiki.git define(function (require, exports, module) { a = require('a'), b = require('b');

 exports.action = function () {};

});exports.action define(["alpha"], function (alpha) { return { verb: function(){ return alpha.verb() + 2; } }; }); define({ add: function(x, y){ return x + y; } }); define("alpha", ["require", "exports", "beta"], function (require, exports, beta) { exports.verb = function() { return beta.verb(); //Or: return require("beta").verb(); } });

Clone this wiki locally