Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
これの冗長性を取り除く方法はありますか? 何十もの依存関係があると、非常にジャンキーに見えます。
define(['a', 'exports'], function(a, exports) { });
はい、別のアプローチがあります。
define(function(require) { var a = require('a') var exports = require('exports') .. })