我需要在浏览器中使用Q
库(http://documentup.com/kriskowal/q/ )。我想RequireJS
用来加载这个库,但我不知道如何做到这一点。我知道如何加载我自己的模块,但我不能用Q
. 它有一些功能:
(function (definition) {
//some another code here***
// RequireJS
} else if (typeof define === "function" && define.amd) {
define(definition);
如何加载Q
然后在另一个模块中使用它?