小编use*_*163的帖子

在浏览器中使用Q库

我需要在浏览器中使用Q库(http://documentup.com/kriskowal/q/).我想RequireJS用来加载这个库,但我不知道如何做到这一点.我知道如何加载我自己的模块,但我不能这样做Q.它有一些功能:

(function (definition) { 
  //some another code here***
  // RequireJS
} else if (typeof define === "function" && define.amd) {
  define(definition);
Run Code Online (Sandbox Code Playgroud)

如何加载Q然后在另一个模块中使用它?

javascript module requirejs q

6
推荐指数
2
解决办法
5068
查看次数

标签 统计

javascript ×1

module ×1

q ×1

requirejs ×1